From: Sarah Hoffmann Date: Sun, 19 Aug 2018 16:08:05 +0000 (+0200) Subject: reduce search radius when searching for nodes within country X-Git-Tag: v3.2.0~20 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/ff4b1758e1031e0c406d13a7a3982bf158fa66f2 reduce search radius when searching for nodes within country --- 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';