2

I need to populate some drop-down lists for an address form, so whenever a user selects a country, he should have a list of all regions (states/provinces or whatever official subdivision the country uses) to chose from and then all the localities from that region.

I'd be happy with a database too and I could implement my own API around it.

4
  • 1
    I have updated your question and expanded region, please add more info: what size of localities do you require?
    – user416
    Oct 19 '16 at 11:12
  • Don't forget that you can get G.I.S help on our sister site gis.stackexchange.com Oct 19 '16 at 13:42
  • Open Data is full of requests for city data
    – user416
    Oct 20 '16 at 7:59
  • I have reverted the previous edit. The original request was for a (free) API, which means 'free' is optional and paid solutions are also welcome.
    – user416
    Oct 20 '16 at 8:03
2

You could use the data from, or the Overpass API of, the Open Street Map project, subject to applicable licences or conditions of use, or from other Geographic Information Systems, (GIS), data sources of which there are a huge number. You may wish to narrow down your range of countries if appropriate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.