Database of geographical names (city, attractions)

I create a travel site with django. When the user enters the name of the destination city (or points of interest, such as a yellow stone), I want to make an ajax auto clause. The question is, how can I get a database of offers? Is there a web service? Best if he can also support foreign cities. Many thanks.

+4
source share
2 answers

What you want is called gazetteer .

The official USGS directory for the United States is available for download .

Two global geocoded databases include:

Geonames has a free list of cities and POIs. It includes the USGS reference and many other information. You may need to multiply your database, as it may return too many results for you.

Maxmind also has a free city database.

+4
source

take a look at OpenStreetMap there are many cities, both in chinease, and in English

+1
source

Source: https://habr.com/ru/post/1311813/


All Articles