forked from edward/owl-map
Avoid name match crash for OSM objects with no name
This commit is contained in:
parent
c2cc7ba5b1
commit
f60b938dc1
|
@ -708,7 +708,7 @@ def find_osm_candidates(item, limit=80, max_distance=450, names=None):
|
|||
"id": osm_id,
|
||||
"distance": distance,
|
||||
"name": name,
|
||||
"name_match": (name.lower() in item_names),
|
||||
"name_match": (name and name.lower() in item_names),
|
||||
"tags": tags,
|
||||
"geojson": json.loads(geojson),
|
||||
"presets": get_presets_from_tags(shape, tags),
|
||||
|
|
Loading…
Reference in a new issue