only starts the search in country_osm_grid if $iMaxRank > 4

This commit is contained in:
gemo1011
2018-05-23 15:29:41 +02:00
parent 7585d37818
commit f0e5cf53b8

View File

@@ -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']);