Simply code for OSM name
This commit is contained in:
parent
eb37e0bf7c
commit
8f3f40e569
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue