lookup endpoint supports jsonv2 and geocodejson output now

This commit is contained in:
marc tobias
2019-07-21 23:20:48 +02:00
parent 15bca71b0d
commit 1560685020
4 changed files with 17 additions and 9 deletions

View File

@@ -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'