From 37b954739c3155f2decd73b3026b38503edf7020 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 20 Jun 2021 14:38:33 +0200 Subject: [PATCH] show more OSM candidate matches --- web_view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_view.py b/web_view.py index 8321cba..14e6df6 100755 --- a/web_view.py +++ b/web_view.py @@ -876,7 +876,7 @@ def is_street_number_first(lat, lon): return bool(alpha2_number_first & alpha2) -def get_nearby(bbox, item, max_distance=200): +def get_nearby(bbox, item, max_distance=300): db_bbox = make_envelope(bbox) osm_objects = {} @@ -914,7 +914,7 @@ def get_nearby(bbox, item, max_distance=200): cls.tags["amenity"] != "atm", cls.tags["amenity"] != "recycling") - q = q.limit(20) + q = q.limit(40) # print(q.statement.compile(compile_kwargs={"literal_binds": True})) @@ -929,7 +929,7 @@ def get_nearby(bbox, item, max_distance=200): for identifier, dist in sorted(distances.items(), key=lambda i:i[1])] - return nearby[:10] + return nearby[:40] def find_preset_file(k, v, ending):