From 8f3f40e569f63c629d06bed80258a536ca49f3f2 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 25 Jun 2021 11:08:02 +0200 Subject: [PATCH] Simply code for OSM name --- web_view.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web_view.py b/web_view.py index 9a71e24..0d5675b 100755 --- a/web_view.py +++ b/web_view.py @@ -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( {