Add GPS Coordinates on locations

Description

Hi,

I've seen that cities table got a coordinates field.
It would be interesting to add it on locations table and fill it automatically when saving.
WDYT ?

Environment

None

Attachments

1
  • 16 May 2013, 07:37 PM

Activity

Show:

Nicolas Micoud January 9, 2015 at 3:44 PM
Edited

Hi,

I've just uploaded the first version of the plugin here : https://bitbucket.org/nmicoud/org.tgi.gps-coordinates-googlemaps

Wiki : http://wiki.idempiere.org/en/Plugin:_GPS_GoogleMaps

Regards,

Nicolas

Carlos Ruiz January 7, 2015 at 8:43 PM

, thinking further I think this can be very useful as is converted to a plugin.

Anybody wanting to have coordinates in location automatically resolved can use the plugin - or if the resolver is different then it can write a different plugin based on yours - i.e. here in Colombia Google doesn't resolve properly addresses - but is learning quickly slightly smiling face

Nicolas Micoud January 7, 2015 at 4:37 PM

On IRC this afternoon :

[14:30] <nmicoud> for #416, you mean add a SysConfig like "GPS_COORDONATES_RESOLVER". If set to 'google', it will use my patch ; if empty, nothing will be done ; and this way it could be easily extended ?
[14:31] <@CarlosRuiz> no, I was thinking OSGi way
[14:31] <nmicoud> ah, a real 'plugin' ?
[14:31] <@CarlosRuiz> indeed maybe there is already one ... let me check
[14:35] <@CarlosRuiz> there is an AddressValidation that can be configured via a sysconfig key
[14:35] <nmicoud> i see
[14:36] <@CarlosRuiz> and save the result at the field Result
[14:39] <@CarlosRuiz> that's intended for validation of address in certain countries - could be exploited to set the coordinates - or use similar approach for a coordinates resolver
[14:39] <@CarlosRuiz> thanks hieplq - will try to check
[14:40] <nmicoud> maybe try to duplicate it for coordinates ? that's 2 different things

Carlos Ruiz January 7, 2015 at 1:25 PM

Thanks Nicolas, I like this idea but I think it must be made configurable - the resolver of the coordinates (in your patch google maps) maybe would be better to make it pluggable as there can be other resolvers - or none.

Carlos Ruiz December 18, 2013 at 3:39 PM

Maybe we can analyze this from the PostGIS perspective as a plugin?

Won't Fix

Details

Assignee

Reporter

Labels

Priority

Created August 31, 2012 at 11:44 AM
Updated May 4, 2015 at 5:43 PM
Resolved January 9, 2015 at 3:44 PM