How to get the list of Administrative_area_level_1 for a given country from the Google Maps api?

I am creating an interactive drill map. I want to use lists that allow the user to drill from continents to a country in the Administrative_area_level_1 area.

Is there any way to request google api maps and get a list of administrator_area_level_1 names for a given country?

I looked in geocoding, which basically gives me lat / lng coordinates for the address, also looked at reverse geocoding, which will return the address components for the given lat / lng

doesn't matter ... I need a list of names administrator_area_level_1 for this country ...

+4
source share
2 answers

I do not believe that Google has a complete list or API for this information, but there are several resources that may be useful:

Counties (US Census)

Cities (Google AdWords API

Geographic Goals (Google AdWords API)

This last one is ambiguous, but seems to include quite a lot. You can probably filter it out to what you need.

+3
source

Unfortunately, the Google Maps API does not provide this feature. You will have to look for solutions such as the SimpleGeo API .

+1
source

Source: https://habr.com/ru/post/1334577/


All Articles