Search for content

Service Times and Opening Intervals

This code sample describes how to calculate a route with service times and opening intervals.

In the sample below the driver is supposed to perform service at the destination. The destination has opening intervals and if the driver misses them, the driver has to wait until it opens. To see a schedule event of type waiting in the response, set the beginning of the opening interval to a time after the driver arrives or the end of the opening interval to a time before the driver arrives.