]> git.openstreetmap.org Git - nominatim.git/commitdiff
exclude all objects without address rank from reverse
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 16 Apr 2019 21:13:27 +0000 (23:13 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 16 Apr 2019 21:13:27 +0000 (23:13 +0200)
This was forgotten when looking for a housenumber for
a street point.

Fixes #1319.

lib/ReverseGeocode.php

index 50060ee00e91ba7dc4b05ca149af25c38ecfe5b2..5cecfd33a8606934fa3109929c5ad84313805f21 100644 (file)
@@ -299,7 +299,7 @@ class ReverseGeocode
                     // radius ?
                     $sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, 0.001)';
                     $sSQL .= ' AND parent_place_id = '.$iPlaceID;
                     // 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\')';
                     $sSQL .= ' and ST_GeometryType(geometry) != \'ST_LineString\'';
                     $sSQL .= ' and (name is not null or housenumber is not null)';
                     $sSQL .= ' and class not in (\'boundary\')';