mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
lookup endpoint supports jsonv2 and geocodejson output now
This commit is contained in:
@@ -455,8 +455,12 @@ def website_lookup_request(context, fmt, query):
|
||||
|
||||
if fmt == 'json ':
|
||||
outfmt = 'json'
|
||||
elif fmt == 'jsonv2 ':
|
||||
outfmt = 'json'
|
||||
elif fmt == 'geojson ':
|
||||
outfmt = 'geojson'
|
||||
elif fmt == 'geocodejson ':
|
||||
outfmt = 'geocodejson'
|
||||
else:
|
||||
outfmt = 'xml'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user