mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
only starts the search in country_osm_grid if $iMaxRank > 4
This commit is contained in:
@@ -266,7 +266,7 @@ class ReverseGeocode
|
||||
$aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank);
|
||||
if ($aPlace) {
|
||||
$oResult = new Result($aPlace['place_id']);
|
||||
} else {
|
||||
} elseif(!$aPlace && $iMaxRank > 4) {
|
||||
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
||||
if ($aPlace) {
|
||||
$oResult = new Result($aPlace['place_id']);
|
||||
@@ -278,7 +278,7 @@ class ReverseGeocode
|
||||
$aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank);
|
||||
if ($aPlace) {
|
||||
$oResult = new Result($aPlace['place_id']);
|
||||
} else {
|
||||
} elseif(!$aPlace && $iMaxRank > 4) {
|
||||
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
||||
if ($aPlace) {
|
||||
$oResult = new Result($aPlace['place_id']);
|
||||
|
||||
Reference in New Issue
Block a user