alinmindroc / valhalla_traffic_poc

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

can realtime traffic be taken into account without restarting the service? #17

Closed xlqian closed 3 months ago

xlqian commented 3 months ago

As indicated in the title, can real-time traffic be taken into account without restarting the service?

It seems in this demo, I have to restart the service to update the traffic, right?

otherwise, does some more heavy work need to be done as explained here to achieve that?

thank you

alinmindroc commented 3 months ago

Hello,

Yes, traffic can be updated without restarting the service. The valhalla_traffic_demo_utils tool that is implemented as part of this repo is the external process which writes directly into the tar from the post that you linked.

In step 6 of the readme there is a mention about restarting the service only the first time before applying traffic. But basically afterwards you can use valhalla_traffic_demo_utils as many times as you want and the traffic will be updated.

xlqian commented 3 months ago

wonderful! thank you