mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
[enh][oscar_template] loading map informations from overpass-api
This commit is contained in:
parent
a9b4f458e9
commit
4b75d41f86
4 changed files with 120 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue