Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all neighborhoods per city in google maps API

Tags:

google-maps

Is there a way to get all neighborhoods per city from google maps.

For example the following API call tells me that Little Italy is a neighborhood in Manhattan, New York.

http://maps.google.com/maps/api/geocode/json?address=Little+Italy

Is there of a way of listing all such neighborhood items that belong in New York, or any other US city.

like image 875
Martin Taleski Avatar asked Jan 15 '15 22:01

Martin Taleski


People also ask

How do I get a city with Google API?

2) Make another web-service call to https://maps.googleapis.com/maps/api/place/details/json?key=API_KEY&placeid=place_id_retrieved_in_step_1. This will return a JSON which contains address_components . Looping through the types to find locality and postal_code can give you the city name and postal code.

Can Google Maps show neighborhood boundaries?

There is no such data available through Google Maps API - as yet. You may have seen the pink boundary for cities in Maps search results (as in above screenshot) which leads to many believe that it may be available through API but in fact it is not.

How do I find my neighborhood on Google Maps?

Open Google Maps. In the bottom right, click Pegman . Then, drag Pegman to the area you want to explore. Unclick to drop Pegman on a blue line, blue dot, or orange dot on the map.


1 Answers

Short answer: Though Google Maps displays such data, the GMaps API does not allow you to "play" with neighborhoods.

You would have to use a third party API to get that kind of information.

like image 125
alcfeoh Avatar answered Sep 20 '22 13:09

alcfeoh