X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/44ee8d9ce34a4a60113b6600dcc7b2f5b24c7a0e..8b8ee007253daf653aefa49bcad5505f7e4324ad:/utils/warm.php?ds=sidebyside diff --git a/utils/warm.php b/utils/warm.php index d707b9cb..653bcf10 100755 --- a/utils/warm.php +++ b/utils/warm.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -Cq +#!@PHP_BIN@ -Cq setIncludeAddressDetails(true); $oPlaceLookup->setLanguagePreference(array('en')); - echo "Warm reverse: "; + echo 'Warm reverse: '; if ($bVerbose) echo "\n"; for ($i = 0; $i < 1000; $i++) { $fLat = rand(-9000, 9000) / 100; @@ -46,16 +46,16 @@ if (!$aResult['search-only']) { ); if ($bVerbose) echo $aDetails['langaddress']."\n"; } else { - echo "."; + echo '.'; } } echo "\n"; } if (!$aResult['reverse-only']) { - $oGeocode =& new Nominatim\Geocode($oDB); + $oGeocode = new Nominatim\Geocode($oDB); - echo "Warm search: "; + echo 'Warm search: '; if ($bVerbose) echo "\n"; $sSQL = 'select word from word where word is not null order by search_name_count desc limit 1000'; foreach ($oDB->getCol($sSQL) as $sWord) { @@ -64,6 +64,6 @@ if (!$aResult['reverse-only']) { $oGeocode->setQuery($sWord); $aSearchResults = $oGeocode->lookup(); if ($bVerbose) echo $aSearchResults[0]['langaddress']."\n"; - else echo "."; + else echo '.'; } }