Answer the question
In order to leave comments, you need to log in
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
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
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.
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 questionAsk a Question
731 491 924 answers to any question