X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a3c6c43ea7133c934834ce1face9212f4e3d239..24e52de5f34363dd7fa5cc318d00e7c7135b84ff:/utils/warm.php?ds=inline diff --git a/utils/warm.php b/utils/warm.php old mode 100755 new mode 100644 index 0ac13c46..96372aec --- a/utils/warm.php +++ b/utils/warm.php @@ -1,7 +1,5 @@ -#!/usr/bin/php -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 '.';