mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-10-05 15:08:32 +03:00
allow unnamed roads for reverse geocoding
Should avoid that results are too far off in areas where most roads are unnamed.
This commit is contained in:
parent
f7258e314d
commit
8d91a88b22
@ -132,7 +132,8 @@ class ReverseGeocode
|
||||
$sSQL .= ' LIMIT 1000) as p WHERE';
|
||||
}
|
||||
$sSQL .= ' rank_search != 28 and rank_search >= '.$iMaxRank;
|
||||
$sSQL .= ' and (name is not null or housenumber is not null)';
|
||||
$sSQL .= ' and (name is not null or housenumber is not null';
|
||||
$sSQL .= ' or rank_search between 26 and 27)';
|
||||
$sSQL .= ' and class not in (\'waterway\',\'railway\',\'tunnel\',\'bridge\',\'man_made\')';
|
||||
$sSQL .= ' and indexed_status = 0 and linked_place_id is null';
|
||||
$sSQL .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') ';
|
||||
|
Loading…
Reference in New Issue
Block a user