add a link to OSM map as a CapGeolocIp field and make the application fill it
This commit is contained in:
parent
96c7dab513
commit
00112b3e51
2 changed files with 3 additions and 0 deletions
|
|
@ -40,4 +40,6 @@ class Geolooc(ReplApplication):
|
|||
return 2
|
||||
|
||||
for location in self.do('get_location', argv[1]):
|
||||
if location.lt and location.lg:
|
||||
location.osmlink = u'http://www.openstreetmap.org/?mlat=%s&mlon=%s#map=13/%s/%s' % (location.lt, location.lg, location.lt, location.lg)
|
||||
self.format(location)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue