From: Sarah Hoffmann Date: Tue, 12 Feb 2013 18:10:36 +0000 (+0100) Subject: increase initial search radius for reverse lookups X-Git-Tag: v2.2.0~118 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/463ef857c8eec827f60bb203df5211c6c7755b0f increase initial search radius for reverse lookups 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. --- diff --git a/website/reverse.php b/website/reverse.php index ab68a849..33e6cd5e 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -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;