X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f7258e314d3592ade68c6a34dec319d67354b211..a8a700e16d286971c43c013b322a1fd4a339de4d:/lib/ReverseGeocode.php?ds=inline diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index a7bfad63..e538620a 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -132,7 +132,8 @@ class ReverseGeocode $sSQL .= ' LIMIT 1000) as p WHERE'; } $sSQL .= ' rank_search != 28 and rank_search >= '.$iMaxRank; - $sSQL .= ' and (name is not null or housenumber is not null)'; + $sSQL .= ' and (name is not null or housenumber is not null'; + $sSQL .= ' or rank_search between 26 and 27)'; $sSQL .= ' and class not in (\'waterway\',\'railway\',\'tunnel\',\'bridge\',\'man_made\')'; $sSQL .= ' and indexed_status = 0 and linked_place_id is null'; $sSQL .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') ';