Parameterise the search only within countries

This commit is contained in:
alfmarcua
2023-07-06 08:52:41 +02:00
parent 157f0b8a83
commit 26e78efbb9
3 changed files with 12 additions and 0 deletions

View File

@@ -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) {