summaryrefslogtreecommitdiff
path: root/searx/engines/openstreetmap.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-19 14:59:30 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-19 15:49:55 +0100
commit4b75d41f864b9d127aa88c962b7ce849ee3b0b51 (patch)
tree6aa8dd613e11edc9a2257c841b655e5a0a970990 /searx/engines/openstreetmap.py
parenta9b4f458e98ffcd5a2bce95fd95c28638a3a6b0f (diff)
downloadsearxng-4b75d41f864b9d127aa88c962b7ce849ee3b0b51.tar.gz
searxng-4b75d41f864b9d127aa88c962b7ce849ee3b0b51.zip
[enh][oscar_template] loading map informations from overpass-api
Diffstat (limited to 'searx/engines/openstreetmap.py')
-rw-r--r--searx/engines/openstreetmap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py
index db0fbfe75..f727ca8ea 100644
--- a/searx/engines/openstreetmap.py
+++ b/searx/engines/openstreetmap.py
@@ -39,6 +39,9 @@ def response(resp):
url = result_base_url.format(osm_type=osm_type,
osm_id=r['osm_id'])
+ osm = {'type':osm_type,
+ 'id':r['osm_id']}
+
geojson = r.get('geojson')
# if no geojson is found and osm_type is a node, add geojson Point
@@ -82,6 +85,7 @@ def response(resp):
'boundingbox': r['boundingbox'],
'geojson': geojson,
'address': address,
+ 'osm': osm,
'url': url})
# return results