From: Sarah Hoffmann Date: Tue, 16 Apr 2019 21:13:27 +0000 (+0200) Subject: exclude all objects without address rank from reverse X-Git-Tag: v3.3.0~9 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0af48fe802f6cf81accdb3ee550c23d2ed2376c4 exclude all objects without address rank from reverse This was forgotten when looking for a housenumber for a street point. Fixes #1319. --- diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 50060ee0..5cecfd33 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -299,7 +299,7 @@ class ReverseGeocode // radius ? $sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, 0.001)'; $sSQL .= ' AND parent_place_id = '.$iPlaceID; - $sSQL .= ' and rank_address != 28'; + $sSQL .= ' and rank_address > 28'; $sSQL .= ' and ST_GeometryType(geometry) != \'ST_LineString\''; $sSQL .= ' and (name is not null or housenumber is not null)'; $sSQL .= ' and class not in (\'boundary\')';