X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/157f0b8a837a01c0759b17abcf7dec72c8ac8c30..26e78efbb911f8f6b1988c80b4dd616e14211966:/lib-php/ReverseGeocode.php?ds=inline diff --git a/lib-php/ReverseGeocode.php b/lib-php/ReverseGeocode.php index fddad60d..1777288a 100644 --- a/lib-php/ReverseGeocode.php +++ b/lib-php/ReverseGeocode.php @@ -85,6 +85,11 @@ class ReverseGeocode protected function lookupLargeArea($sPointSQL, $iMaxRank) { + if(CONST_Search_WithinCountries + and $this->lookupInCountry($sPointSQL, $iMaxRank) == null){ + return null; + } + if ($iMaxRank > 4) { $aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank); if ($aPlace) {