From ff4b1758e1031e0c406d13a7a3982bf158fa66f2 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 19 Aug 2018 18:08:05 +0200 Subject: [PATCH] reduce search radius when searching for nodes within country --- lib/ReverseGeocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 0500df93..681403a1 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -117,7 +117,7 @@ class ReverseGeocode $sSQL .= ' AND class = \'place\' AND type != \'postcode\''; $sSQL .= ' AND name IS NOT NULL '; $sSQL .= ' and indexed_status = 0 and linked_place_id is null'; - $sSQL .= ' AND ST_DWithin('.$sPointSQL.', geometry, 5.0)) p '; + $sSQL .= ' AND ST_DWithin('.$sPointSQL.', geometry, 1.8)) p '; $sSQL .= 'WHERE distance <= reverse_place_diameter(rank_search)'; $sSQL .= ' ORDER BY rank_search DESC, distance ASC'; $sSQL .= ' LIMIT 1'; -- 2.45.1