[intersections] highway=crossing also valid

This commit is contained in:
Al
2016-08-18 03:00:23 -04:00
parent f137d68e12
commit 1675bba3f0

View File

@@ -62,7 +62,7 @@ class OSMIntersectionReader(object):
props = {safe_decode(k): safe_decode(v) for k, v in six.iteritems(props)}
if element_id.startswith('node'):
node_id = long(element_id.split(':')[-1])
if props.get('junction', '').lower() == 'yes' or props.get('highway', '').lower() == 'traffic_signals':
if props.get('junction', '').lower() == 'yes' or props.get('highway', '').lower() in ('traffic_signals', 'crossing'):
node_ids.append(node_id)
node_counts.append(0)
elif element_id.startswith('way'):