X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/128ca800cd6962b19d9b07e5f7504496e76e353a..efafa5271957fb54b356ec1c90e8613f14de40d4:/lib-php/ReverseGeocode.php?ds=inline diff --git a/lib-php/ReverseGeocode.php b/lib-php/ReverseGeocode.php index 47e931ef..5a852889 100644 --- a/lib-php/ReverseGeocode.php +++ b/lib-php/ReverseGeocode.php @@ -1,4 +1,12 @@ '.$iRankSearch; $sSQL .= ' AND rank_search <= '.$iMaxRank; + $sSQL .= ' AND rank_search < 26 '; // needed to select right index $sSQL .= ' AND rank_address > 0'; $sSQL .= ' AND class = \'place\''; $sSQL .= ' AND type != \'postcode\'';