]> git.openstreetmap.org Git - nominatim.git/commitdiff
reduce search radius when searching for nodes within country
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 19 Aug 2018 16:08:05 +0000 (18:08 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 19 Aug 2018 16:08:05 +0000 (18:08 +0200)
lib/ReverseGeocode.php

index 0500df937c2431ea3a2abc2cd15106044b5ea0d9..681403a19eff902d389fb8feba18e61b5b489a8d 100644 (file)
@@ -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';