Google places API - How to get regions of a country?

Ajar picture Ajar · Mar 20, 2013 · Viewed 11.8k times · Source

I've looked again and again on the site for this simple question and didn't find an answer I think it is very generic need Let's say that you have two drop down lists One you want to populate with a list of countries, and once you've selected one - to populate the other with a list of it's regions. Is it even possible with Google Places API? Cheers :)

Answer

Robert Dodd picture Robert Dodd · Mar 20, 2013

No, it is not possible with Places API.

You have 2 options: Use Another Database

There are a few free databases of country/state lists. Have a look at the following questions for some examples:

List of Cities by Country
https://raw.githubusercontent.com/David-Haim/CountriesToCitiesJSON/master/countriesToCities.json

Create your own database

Create your own database of the states in each country. Not recommended, as it would be a waste of precious time.