Drop way_area tag from OSM candidates

This commit is contained in:
Edward Betts 2021-06-17 19:17:07 +02:00
parent 53ca5b4ead
commit 478a145548
1 changed files with 1 additions and 0 deletions

View File

@ -1046,6 +1046,7 @@ def api_find_osm_candidates(item_id):
nearby = []
for osm, dist in get_nearby(bounds, item):
tags = osm.tags
tags.pop("way_area", None)
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:
name = address_from_tags(tags)