graphhopper / jsprit

jsprit is a java based, open source toolkit for solving rich vehicle routing problems
https://www.graphhopper.com/open-source/
Apache License 2.0
1.62k stars 604 forks source link

ETA (Estimated Time of Arrival) calculation. #518

Open umitkose opened 3 years ago

umitkose commented 3 years ago

I am trying to calculate ETA for a list of delivery jobs. After getting a solution by following the path Solution > Route> TourActivity we can access getArrTime and getEndTime methods. Can we calculate the ETA of a delivery by startTime + getArrTime? I tried this formula but I guess getArrTime only respects to service durations assinged to delivery job.

If someone confirm my formula I will search my implementation to where I made a mistake.

Thanks in advance.

bludginozzie commented 3 years ago

Yes, I think your formula is correct. In essence the TourActivity.getArrTime() can be considered an ETA for an activity.