From d4eb60fe3397364e2ed1af22fe74f121eda2415a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 11 Jul 2021 17:16:54 +0200 Subject: [PATCH] No need to drop geotext from search output --- web_view.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/web_view.py b/web_view.py index 8425d9b..4679199 100755 --- a/web_view.py +++ b/web_view.py @@ -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())