B
B
butize2020-08-21 11:58:21
Data request
butize, 2020-08-21 11:58:21

Where can I get a list of all cities in the world to fill in the select?

Good afternoon. My task is to make a user registration form, where you need to make three selects with a choice: 1) countries 2) cities 3) country code bodies and at the same time all these three selects must be connected, i.e. a person selects a country and in the city select he can select only cities from this country. I looked at different plugins like Chosen, Select2 and so on.
But my question is: how do I fill in these selects? Maybe there is some ready solution.. Thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CatCotCod, 2020-08-21
@butize

List of cities in json format - https://github.com/aZolo77/citiesBase/blob/master/...

A
Anton Anton, 2020-08-21
@Fragster

https://wiki.openstreetmap.org/wiki/Planet , and there you can filter xml.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question