]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
hint blocked IPs about missing UA
[nominatim.git] / website / reverse.php
index 391e4b500a334c8a54bbb4dbf234f22e4c885528..134b5e4e84d76cdb8ba6d12243b62993d6e71027 100755 (executable)
@@ -63,7 +63,7 @@
                $iMaxRank = (isset($_GET['zoom']) && isset($aZoomRank[$_GET['zoom']]))?$aZoomRank[$_GET['zoom']]:28;
 
                // Find the nearest point
-               $fSearchDiam = 0.0008;
+               $fSearchDiam = 0.0004;
                $iPlaceID = null;
                $aArea = false;
                $fMaxAreaDistance = 1;
@@ -95,7 +95,7 @@
                        $aPlace = $oDB->getRow($sSQL);
                        if (PEAR::IsError($aPlace))
                        {
-                               failInternalError("Could not determine closest place.", $sSQL, $iPlaceID);
+                               failInternalError("Could not determine closest place.", $sSQL, $aPlace);
                        }
                        $iPlaceID = $aPlace['place_id'];
                        $iParentPlaceID = $aPlace['parent_place_id'];