Improve OSM name handling
This commit is contained in:
parent
906bdb7256
commit
e62dd4d1d6
2 changed files with 16 additions and 2 deletions
|
|
@ -421,8 +421,8 @@ def find_osm_candidates(item, bounds):
|
|||
for osm, dist in get_nearby(bounds, item):
|
||||
tags = osm.tags
|
||||
tags.pop("way_area", None)
|
||||
name = osm.name or tags.get("addr:housename") or tags.get("inscription")
|
||||
if not name and "addr:housenumber" in tags and "addr:street" in tags:
|
||||
name = osm.display_name()
|
||||
if not name and osm.has_street_address:
|
||||
name = address_from_tags(tags)
|
||||
|
||||
if isinstance(osm, model.Polygon) and "building" in osm.tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue