exclude all objects without address rank from reverse

This was forgotten when looking for a housenumber for
a street point.

Fixes #1319.
This commit is contained in:
Sarah Hoffmann
2019-04-16 23:13:27 +02:00
parent a9ae2c7457
commit 0af48fe802

View File

@@ -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\')';