Page MenuHomePhabricator

Reverse geocoding
Closed, ResolvedPublic

Description

Author: kvolden

Description:
It would be great if the Maps extension could provide reverse geocoding, something at least Google provides. As of now, if you use the #geocoder parser hook with coordinates as a parameter, you simply get a conversion of the coordinates. But if you use the Google geocoder api and send coordinates with the latlng parameter, you get a response formatted as xml or a json structure with addresses ranging from very specific to very general. Being able to pass some coordinates and pick out things like the city and different administrative areas (municipality, county, state, etc) would be very useful.

The method for doing this is basically identical to regular geocoding, with a few minor adjustments, and can be found here:

https://developers.google.com/maps/documentation/geocoding/?hl=en#ReverseGeocoding
https://developers.google.com/maps/documentation/javascript/geocoding?hl=en#ReverseGeocoding

Example: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false


Version: unspecified
Severity: enhancement

Details

Reference
bz44870