Retrieving or showing route tasks’ order is currently not supported on the eLogii API by design due to the fact that there are some configuration settings that require the order numbers displayed on the dashboard to be calculated in the runtime.
Tasks in the route legs are however displayed in the order that the driver is supposed to do them (the order shown on the dashboard). Filtering the legs by the "type": 10
will return the tasks and the index is the order number.
Therefore, if you have route legs such as :
[start/depot, pickup_A, pickup_B, break, delivery_C, delivery_D, end/depot]
Tasks order
pickup_A is order 1
pickup_B is order 2
delivery_C is order 3
delivery_D is order 4
To learn more about the types of route legs, head over to our documentation here