Simply code for OSM name

This commit is contained in:
Edward Betts 2021-06-25 11:08:02 +02:00
parent eb37e0bf7c
commit 8f3f40e569
1 changed files with 1 additions and 6 deletions

View File

@ -129,12 +129,7 @@ def get_osm_with_wikidata_tag(bbox):
if osm.identifier in seen:
continue
seen.add(osm.identifier)
name = osm.name
if not name:
if "addr:housename" in osm.tags:
name = osm.tags["addr:housename"]
else:
name = "[no label]"
name = osm.name or osm.tags.get("addr:housename") or "[no label]"
tagged.append(
{