Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.31k stars 3.33k forks source link

Is it possible to send difference of live traffic data each time? #6532

Open safe-bug opened 1 year ago

safe-bug commented 1 year ago

Hello

I want to know is it possible to send the difference of live traffic data (csv) in each cycle when I want to update the graph speeds?

Currently I have to update around 50 million edges on each traffic update cycle but actually a small number of these edges speed is changing in each cycle so if it's possible I can customize a much more small csv and save time.

I had some tests and it seems that when I don't provide other edges speeds the last valid value isn't kept. Is there any way to make it possible?

Thanks

danpat commented 1 year ago

@safe-bug when you run osrm-customize, it updates the datafiles in place. Any edges that aren't in your CSV are not reset, they're left at the previous value.

If you're copying your original osrm-extract/osrm-partition files then applying osrm-customize to them, then yes, everything will be reset each time. But if you apply osrm-customize over the same files over and over, old data will be retained.

github-actions[bot] commented 2 months ago

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

salarnz commented 2 months ago

Hi , i have many gps trace records in my server. can you help me how can i make csv file ? thanks