alinmindroc / valhalla_traffic_poc

Step-by-step instructions to run valhalla with traffic info
65 stars 10 forks source link

got wrong data #9

Open Blagodarenko opened 1 year ago

Blagodarenko commented 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:

alinmindroc commented 1 year ago

Hello, That's right, good find! Feel free to create a PR.