hazems / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
1 stars 0 forks source link

Reverse GeoCoding support #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a feature request, not a bug report.

Since google has added reverse geocoding support, it would be nice to be 
able to access it from gmaps4jsf as well.  I am not exactly sure the best 
way to implement this but the situation I am encountering is when the user 
moves a marker, I want to get a structured address of where the marker 
ended up.

Perhaps this could be best implemented by a new attribute to <m:marker> 
called reverseGeoCode.  The value of the attribute is either:

a) A Javascript function that is called when the reverse geocode object is 
returned from the server (an event handler in other words) or

b) An EL expression that evaluates to a server-side method.

Either the javascript function or the server-side method would have to take 
a String parameter, which would be the JSON object returned by the google 
server.  As the documentation over there says, reverse geocoding is not 
exactly a precise science so an application will have to implement non-
trivial logic to use the JSON object.   But it would be worth doing so.

Original issue reported on code.google.com by Alan.Deikman on 14 Nov 2009 at 4:51

GoogleCodeExporter commented 9 years ago
Yes. A good feature. I used a work around of calling the geocode web service 
and 
processing the placements in my bean.

This new feature should help integrators with placement selection, since a list 
is 
sometimes returned.

Original comment by ocho...@gmail.com on 25 Nov 2009 at 7:03

GoogleCodeExporter commented 9 years ago
Iam working on it.

Original comment by Hazem.sa...@gmail.com on 11 Dec 2009 at 2:36

GoogleCodeExporter commented 9 years ago

Original comment by Hazem.sa...@gmail.com on 11 Dec 2009 at 2:36

GoogleCodeExporter commented 9 years ago
Supported now using: 

GMaps4JSFServiceFactory.getReverseGeocoderService().getPlaceMark(markerValue.get
Latitude(),
markerValue.getLongitude())

in 1.1.3

Original comment by Hazem.sa...@gmail.com on 11 Dec 2009 at 3:43