Calculating the departure time from home based on the first order in the trip
When to use
When you need to tell the performer at what time to leave the depot, home or the office.
This lets the performer start working on the trip right at the beginning of the agreed working time, which increases efficiency.
The same functionality also lets you control how far the first and the last order of the trip may be from the depot, minimizing empty mileage.
How to implement
Specify working_time for the shift — the interval in which the performer can fulfil orders.
Specify start_location_key for the start of the trip and finish_location_key for its end.
Then extend availability_time beyond working_time by the amount of time that is acceptable for the empty run from the start/finish location to the first/last order of the trip.
For example: working_time from 10 to 18, availability_time from 9 to 19. This means that the trip starts and ends no further than an hour's drive from the depot.
Example
The driver's departure time from home is chosen so that work starts at 11:00 (UTC+0).