jsprit icon indicating copy to clipboard operation
jsprit copied to clipboard

ETA (Estimated Time of Arrival) calculation.

Open umitkose opened this issue 5 years ago • 1 comments

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.

umitkose avatar Apr 10 '21 18:04 umitkose

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

bludginozzie avatar Jul 22 '21 00:07 bludginozzie