X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e286536959144de9ab18abf7dce7a58e630b3bbc..64f7b13888fbe455632f7ad981f8f04d68701671:/utils/warm.php diff --git a/utils/warm.php b/utils/warm.php old mode 100755 new mode 100644 index 653bcf10..96372aec --- a/utils/warm.php +++ b/utils/warm.php @@ -1,7 +1,5 @@ -#!@PHP_BIN@ -Cq lookup($fLat, $fLon); - if ($aLookup && $aLookup['place_id']) { - $aDetails = $oPlaceLookup->lookup( - (int)$aLookup['place_id'], - $aLookup['type'], - $aLookup['fraction'] - ); + $oLookup = $oReverseGeocode->lookup($fLat, $fLon); + if ($oLookup) { + $aDetails = $oPlaceLookup->lookup(array($oLookup->iId => $oLookup)); if ($bVerbose) echo $aDetails['langaddress']."\n"; } else { echo '.';