No need to drop geotext from search output

This commit is contained in:
Edward Betts 2021-07-11 17:16:54 +02:00
parent 072e5167db
commit d4eb60fe33
1 changed files with 0 additions and 2 deletions

View File

@ -344,8 +344,6 @@ def api_search():
q = request.args["q"]
hits = nominatim.lookup(q)
for hit in hits:
if "geotext" in hit:
del hit["geotext"]
hit["name"] = nominatim.get_hit_name(hit)
hit["label"] = nominatim.get_hit_label(hit)
hit["address"] = list(hit["address"].items())