Check inscription tag for a name

This commit is contained in:
Edward Betts 2021-05-14 21:48:45 +02:00
parent 810ec21eb7
commit 809b92b656

View file

@ -879,7 +879,7 @@ def api_find_osm_candidates(item_id):
nearby = [] nearby = []
for osm, dist in get_nearby(bounds, item): for osm, dist in get_nearby(bounds, item):
tags = osm.tags tags = osm.tags
name = osm.name or tags.get("addr:housename") 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: if not name and "addr:housenumber" in tags and "addr:street" in tags:
name = address_from_tags(tags) name = address_from_tags(tags)