X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4d7c5ec089c6789f24dd7ff60183549dba3f2c0a..500c61685b16fd1d51e7b5f4738c788a9d00eab4:/lib-php/ReverseGeocode.php diff --git a/lib-php/ReverseGeocode.php b/lib-php/ReverseGeocode.php index cf396b7a..0a3841f2 100644 --- a/lib-php/ReverseGeocode.php +++ b/lib-php/ReverseGeocode.php @@ -74,8 +74,6 @@ class ReverseGeocode protected function lookupLargeArea($sPointSQL, $iMaxRank) { - $oResult = null; - if ($iMaxRank > 4) { $aPlace = $this->lookupPolygon($sPointSQL, $iMaxRank); if ($aPlace) { @@ -190,7 +188,6 @@ class ReverseGeocode if ($aPoly) { // if a polygon is found, search for placenodes begins ... - $iParentPlaceID = $aPoly['parent_place_id']; $iRankAddress = $aPoly['rank_address']; $iRankSearch = $aPoly['rank_search']; $iPlaceID = $aPoly['place_id']; @@ -356,7 +353,6 @@ class ReverseGeocode $oResult = new Result($aHouse['place_id'], Result::TABLE_OSMLINE); $oResult->iHouseNumber = closestHouseNumber($aHouse); $aPlace = $aHouse; - $iRankAddress = 30; } }