mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
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:
@@ -299,7 +299,7 @@ class ReverseGeocode
|
|||||||
// radius ?
|
// radius ?
|
||||||
$sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, 0.001)';
|
$sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, 0.001)';
|
||||||
$sSQL .= ' AND parent_place_id = '.$iPlaceID;
|
$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 ST_GeometryType(geometry) != \'ST_LineString\'';
|
||||||
$sSQL .= ' and (name is not null or housenumber is not null)';
|
$sSQL .= ' and (name is not null or housenumber is not null)';
|
||||||
$sSQL .= ' and class not in (\'boundary\')';
|
$sSQL .= ' and class not in (\'boundary\')';
|
||||||
|
|||||||
Reference in New Issue
Block a user