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,
|
"id": osm_id,
|
||||||
"distance": distance,
|
"distance": distance,
|
||||||
"name": name,
|
"name": name,
|
||||||
"name_match": (name.lower() in item_names),
|
"name_match": (name and name.lower() in item_names),
|
||||||
"tags": tags,
|
"tags": tags,
|
||||||
"geojson": json.loads(geojson),
|
"geojson": json.loads(geojson),
|
||||||
"presets": get_presets_from_tags(shape, tags),
|
"presets": get_presets_from_tags(shape, tags),
|
||||||
|
|
Loading…
Reference in a new issue