Simply code for OSM name

This commit is contained in:
Edward Betts 2021-06-25 11:08:02 +02:00
parent eb37e0bf7c
commit 8f3f40e569

View file

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