X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c5fe2ac2067c7154370c3abd6ccca45b0d657547..8081896bc0e3933c7c8a497a012c674c125de66e:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index c1d0c46f..0e5d4a53 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -808,9 +808,7 @@ class Geocode $sSQL .= 'WHERE place_id in ('.$sPlaceIds.') '; $sSQL .= ' AND ('; $sSQL .= " placex.rank_address between $this->iMinAddressRank and $this->iMaxAddressRank "; - if (14 >= $this->iMinAddressRank && 14 <= $this->iMaxAddressRank) { - $sSQL .= " OR (extratags->'place') = 'city'"; - } + $sSQL .= " OR placex.rank_search between $this->iMinAddressRank and $this->iMaxAddressRank "; if ($this->aAddressRankList) { $sSQL .= ' OR placex.rank_address in ('.join(',', $this->aAddressRankList).')'; }