forked from edward/owl-map
Check inscription tag for a name
This commit is contained in:
parent
810ec21eb7
commit
809b92b656
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue