X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/99e9abe8431a3118d53f3450fb4c60dbe3eb5d3b..5237f44c4a3361e321bea6bcd2a7e3390a3cbb9c:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index a133d868..6f26b3cd 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -742,15 +742,6 @@ class Geocode } if ($aSearch['iSearchRank'] < $this->iMaxRank) $aNewWordsetSearches[] = $aSearch; } - } elseif (isset($aSearchTerm['lat']) && $aSearchTerm['lat'] !== '' && $aSearchTerm['lat'] !== null) { - if ($aSearch['oNear'] === false) { - $aSearch['oNear'] = new NearPoint( - $aSearchTerm['lat'], - $aSearchTerm['lon'], - $aSearchTerm['radius'] - ); - if ($aSearch['iSearchRank'] < $this->iMaxRank) $aNewWordsetSearches[] = $aSearch; - } } elseif ($sPhraseType == 'postalcode' || ($aSearchTerm['class'] == 'place' && $aSearchTerm['type'] == 'postcode')) { // We need to try the case where the postal code is the primary element (i.e. no way to tell if it is (postalcode, city) OR (city, postalcode) so try both if (isset($aSearchTerm['word_id']) && $aSearchTerm['word_id'] && strpos($sNormQuery, $this->normTerm($aSearchTerm['word'])) !== false) {