From 0af48fe802f6cf81accdb3ee550c23d2ed2376c4 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 16 Apr 2019 23:13:27 +0200 Subject: [PATCH] exclude all objects without address rank from reverse This was forgotten when looking for a housenumber for a street point. Fixes #1319. --- lib/ReverseGeocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\')'; -- 2.43.2