N
N
nickname133842019-09-20 11:25:02
Data request
nickname13384, 2019-09-20 11:25:02

Where can I find the api or json of the list of cities?

Good afternoon, I need a list of cities, preferably all over the world by country.
I want to make an input in which you need to enter the name of the city,
when entering a few letters, so that the full name of the city is suggested (with ajax)
If there is already a better solution, I just did not find a suitable one

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
grinat, 2019-09-20
@nickname13384

https://www.nominatim.org/release-docs/develop/api...
https://dadata.ru/suggestions/usage/ ( https://confluence.hflabs.ru/pages/viewpage.action.. - for an average site, free api limits will suffice

S
Serezha, 2019-09-20
Ahen @Ahen

I don’t know if it’s suitable, but in one project I used VK api. Perhaps it will not work, because you must first specify the country.
https://vk.com/dev/database.getCities
And so, I think Yandex/Google map can do this.

F
Fireproof Cockroach, 2019-09-20
@uonick

You can find some references here: https://github.com/hhru/api
For example https://api.hh.ru/areas

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question