]> git.openstreetmap.org Git - nominatim.git/commitdiff
increase initial search radius for reverse lookups
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 12 Feb 2013 18:10:36 +0000 (19:10 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 12 Feb 2013 18:10:36 +0000 (19:10 +0100)
On the osm.org instance, this saves 2 psql queries for about 87% of
reverse requests consequently increasing throughput significantly. A lower
value might make sense if an instance is used only in areas with very
high mapping density but for standard usage this one should be better
suited.

website/reverse.php

index ab68a84978e303eaccd2a39a559c71d13667ce44..33e6cd5e638b4986469a3bc1bf4168472c348177 100755 (executable)
@@ -75,7 +75,7 @@
                $iMaxRank = (isset($_GET['zoom']) && isset($aZoomRank[$_GET['zoom']]))?$aZoomRank[$_GET['zoom']]:28;
 
                // Find the nearest point
-               $fSearchDiam = 0.0001;
+               $fSearchDiam = 0.0004;
                $iPlaceID = null;
                $aArea = false;
                $fMaxAreaDistance = 1;