Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

like image 394
soliton Avatar asked Jan 06 '11 21:01

soliton


People also ask

What is the best way to display information about a certain location in Google Maps API?

Once you have a place_id from a Place Search, you can request more details about a particular establishment or point of interest by initiating a Place Details request.

Is Google geocoding API free?

The Geocoding API uses a pay-as-you-go pricing model. Geocoding API requests generate calls to one of two SKUs depending on the type of request: basic or advanced.

How do you get a geo code for Google Maps?

Getting startedGo to the Google Cloud Console. Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open. From the list of APIs on the Dashboard, look for Geocoding API. If you see the API in the list, you're all set.

How do I get a postcode from Google Maps?

Open a contact or an organization with a postal address. Beside the postal address, click on the map icon. The postal address will automatically open on Google Maps.


2 Answers

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.

like image 91
Don McCurdy Avatar answered Sep 28 '22 08:09

Don McCurdy


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

like image 21
Stefan Kovachev Avatar answered Sep 28 '22 08:09

Stefan Kovachev