Google Maps reverse geocoding returns shorter name
Domanda
I am using reverse geocoding in Google Maps to get an address from a LatLng position.
However, the formatted address (formatted_address) returned in the result is shorter than the address that I get from using an autocomplete for the same point.
How can I get the same (longer) description using reverse geocoding?
Soluzione
I have a similar problem/request posted at: Google Maps Address Components Geocoding vs Places API - Short vs Long Name
For now, if you take the resulting formatted_address from the geocoder and pass it into a query for the new Places API, get the details for the resulting place.reference, and lastly grab the formatted_address from that response, you'll get a long form address.
Not very clean (hence my feature request at gmaps-api issue list), but it should work for now.
Alex