mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Parameterise the search only within countries
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user