alinmindroc / valhalla_traffic_poc

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

Question about traffic.tar #11

Open NonogV2 opened 1 year ago

NonogV2 commented 1 year ago

Hello,

Thank you for this repository!

I have a question about the traffic.tar file. I managed to generate and modify it for a particular route thanks to this repository. However, I wonder if it would be possible to include several different routes in the file? and to modify a particular route among all those present? If so, what would be the procedure to follow?

Thanks

alinmindroc commented 1 year ago

Hello,

Yes, of course it is possible to set speeds for multiple ways in the traffic.tar file. Check the build_live_traffic_data function here: https://github.com/alinmindroc/valhalla_traffic_poc/blob/main/valhalla_code_overwrites/src/mjolnir/valhalla_traffic_demo_utils.cc#L72

It is currently working only for a single tile id because this is just a demo project, but you can just modify it to work with multiple tiles.

Jofemago commented 1 year ago

Hello @alinmindroc , how are you? I'm trying to configure traffic in Valhalla for Colombia, and I have many doubts about traffic. I'm working with the TAR file, and I'm looking at TomTom's documentation. I can see that I can obtain flow information, but it's a bit confusing for me. It doesn't cover the whole city, just a part with a radius around a point. On the other hand, I can obtain traffic data using a polygon with HERE, but I find it quite confusing to define what should go inside that TAR file. Do you have any documentation that could provide me with more clarity? Thank you very much.

alinmindroc commented 1 year ago

Hello, The best place to ask for this kind of support is on the Valhalla discussions page on the official repo: https://github.com/valhalla/valhalla/discussions This repository is supposed to show just how to configure traffic in the most simple way, as the official docs lack this information.