开发者

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

开发者 https://www.devze.com 2023-02-02 17:20 出处:网络
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 administrati开发者_JAVA技巧ve_area_level_1 regions

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 administrati开发者_JAVA技巧ve_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...


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号