Search for content

Drivers' Working Hours

This code sample describes how to calculate a route with working hours regulations and already conducted work by the driver.

In the sample below the driver has already driven one hour and therefore the driver cannot drive the entire route within one day. Hence, a daily rest is scheduled. If you set the accumulated driving time since last break to 0, the route can be driven in a day within the regulations.

Some values like the start time of the route or the last time the driver worked are set automatically by this code sample and cannot be changed.

For detailed information see the Drivers' Working Hours concept.