Open Blagodarenko opened 1 year ago
Hi, for example, if way_id = 123 and we have lines started with:
22222, 1, 12345, 0, 123456 123, 1, 6666, 0, 7777
we got wrong data: [12345, 123456]
https://github.com/alinmindroc/valhalla_traffic_poc/blob/7022ea363f2de800ad8ca3f334b581e5ad070d79/update_traffic.py#L19
need to add another condition if osm_way_id in line and line.index(osm_way_id)==0:
if osm_way_id in line and line.index(osm_way_id)==0:
Hello, That's right, good find! Feel free to create a PR.
Hi, for example, if way_id = 123 and we have lines started with:
22222, 1, 12345, 0, 123456 123, 1, 6666, 0, 7777
we got wrong data: [12345, 123456]
https://github.com/alinmindroc/valhalla_traffic_poc/blob/7022ea363f2de800ad8ca3f334b581e5ad070d79/update_traffic.py#L19
need to add another condition
if osm_way_id in line and line.index(osm_way_id)==0: