I am unable to get any results with the Places API when I use a types=transit_station|neighborhood (or any other type included in the table 2 here: http://code.google.com/apis/maps/documentation/places/supported_types.html#table2
Apparently, this is not related to a specific location (I’ve tried both Milan, Italy and London, GB), so I’m wondering if I’m doing something wrong or if the API is not currently working as expected.
If the above has no solution, I’d be very happy if there was another way of finding the neighborhood of a building (for instance, in this map: http://g.co/maps/hfdke I’d like to be able to find “Fiera Campionaria”, “Il Portello” etc).
What you are looking for are sublocality’s, this can be confirmed through a Places Autocomplete API request:
Input “Fiera Campionaria” returns “Fiera Campionaria, Milano, Italia” with types “sublocality”, “political”, “geocode”:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Fiera%20Campionaria&sensor=false&key=your_api_key
Input “Il Portello” returns “Il Portello, Milano, Italia” with types “sublocality”, “political”, “geocode”:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Il%20Portello&sensor=false&key=your_api_key
Unfortunately a Places API Search request in this area with types specified as “sublocality|political|geocode” does not return these results:
https://maps.googleapis.com/maps/api/place/search/json?location=45.47536640,9.15523110&radius=3000&sensor=false&types=sublocality|political|geocode&key=your_api_key
I have reported this Internally as a bug.
Cheers
Chris