Google places API - How to get regions of a country?
13,853
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.
Author by
Ajar
Updated on June 04, 2022Comments
-
Ajar almost 2 years
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 :)
-
Ajar about 11 yearsthank you for your answer @Homeliss you're right about a waste of time creating my own database I'm currently using a hi-breed of geonames & google places, but really wanted to uniform all the Id's , names, borders, consistencies therefore really wanted to make sure there is no way doing it with Google places API... Other services are not a route we're going to take but trying to avoid. thank you for your help.