X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c792691c5280458499d6e3a6b657bd4cb9661d36..c9453d16814c961d7f2b2666ecb8c1d9ba752fd8:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 692f4093..4ed90dc2 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -252,7 +252,7 @@ class Geocode $aCountries[] = strtolower($sCountryCode); } } - if (isset($aCountryCodes)) + if (isset($aCountries)) $this->aCountryCodes = $aCountries; } @@ -1468,7 +1468,7 @@ class Geocode } } else { // Just interpret as a reverse geocode - $oReverse = new Nominatim\ReverseGeocode($this->oDB); + $oReverse = new ReverseGeocode($this->oDB); $oReverse->setZoom(18); $aLookup = $oReverse->lookup( @@ -1481,6 +1481,7 @@ class Geocode if ($aLookup['place_id']) { $aSearchResults = $this->getDetails(array($aLookup['place_id'] => -1)); + $aResultPlaceIDs[$aLookup['place_id']] = -1; } else { $aSearchResults = array(); }