soliton
soliton

Reputation: 79

how to get an administrative_area_level_1 list for a given country from google maps api?

I'm building a drill down interactive map I want to use lists, that will enable the user to drill from continent to country to administrative_area_level_1 regions

is there a way to query google maps api and get a list of administrative_area_level_1 names for a given country?

I looked in geocoding - which gives me essentially a lat/lng coordinates for an address also looked at reverse geocoding, that will return address components for a given lat/lng

not relevant... i need a list of administrative_area_level_1 names for a given country...

Upvotes: 7

Views: 6288

Answers (2)

Don McCurdy
Don McCurdy

Reputation: 11960

I don't believe Google has a complete list or API for that information, but there are several resources that might be helpful:

Counties (US Census Data)

Cities (Google AdWords API

"Geographical Targets" (Google AdWords API)

That last one is ambiguous but seems to include quite a lot. You could probably filter it down to just what you need.

Upvotes: 3

Stefan Kovachev
Stefan Kovachev

Reputation: 89

Unfortunately the Google Maps API does no provide this functionality. You will have to look into solutions such as the SimpleGeo Context API.

Upvotes: 1

Related Questions