mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +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);
|
$aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank);
|
||||||
if ($aPlace) {
|
if ($aPlace) {
|
||||||
$oResult = new Result($aPlace['place_id']);
|
$oResult = new Result($aPlace['place_id']);
|
||||||
} else {
|
} elseif(!$aPlace && $iMaxRank > 4) {
|
||||||
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
||||||
if ($aPlace) {
|
if ($aPlace) {
|
||||||
$oResult = new Result($aPlace['place_id']);
|
$oResult = new Result($aPlace['place_id']);
|
||||||
@@ -278,7 +278,7 @@ class ReverseGeocode
|
|||||||
$aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank);
|
$aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank);
|
||||||
if ($aPlace) {
|
if ($aPlace) {
|
||||||
$oResult = new Result($aPlace['place_id']);
|
$oResult = new Result($aPlace['place_id']);
|
||||||
} else {
|
} elseif(!$aPlace && $iMaxRank > 4) {
|
||||||
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
$aPlace = $this->noPolygonFound($sPointSQL, $iMaxRank);
|
||||||
if ($aPlace) {
|
if ($aPlace) {
|
||||||
$oResult = new Result($aPlace['place_id']);
|
$oResult = new Result($aPlace['place_id']);
|
||||||
|
|||||||
Reference in New Issue
Block a user