The driver's working hours are a set of regulations that define break periods and driving/travel time limits for vehicle drivers. The purpose of a driving time regulation law is to improve road safety and ensure good working conditions of drivers.
If no driver object with a working hours preset is passed with the request, working hours will be unlimited.
Which restrictions apply
There may not be just a single regulation but many regulations that the driver has to abide by. For instance, one regulation may deal with working hours for all workers, and another regulation may deal with working hours for drivers of heavy vehicles only. Since drivers of heavy vehicles are also workers, both regulations apply to them.
We distinguish three types of time span to which a restriction may apply.
- Driving time: includes the time behind the wheel.
- Working time: includes driving time, service time at depot and customers, and idle time if lower than working time threshold.
- Travel time: the entire time also including, break, idle time, and the daily rest.
Already conducted work of the driver
A driver might already have some accumulated driving/working hours before the start of the route. In this case, the information on already conducted work is provided by the Work Logbook. These values will be taken into account when scheduling breaks and daily rests according to the break and daily rest rules. The conducted work of the driver might be reset if driver had time to rest before start of the route. In other words, if the difference of the start time of the route and the lastTimeTheDriverWorked is more than the given daily rest time.
Naturally, accumulated working and travel time are greater than or equal to the corresponding accumulated driving time. In the same way, the driving time since the last daily rest is always greater than or equal to the corresponding accumulated time since the last break. Therefore for example, if accumulatedDrivingTimeSinceLastBreak is given but not the accumulatedDrivingTimeSinceLastDailyRest the latter is assumed to be equal to the former.
Try it in the Drivers Working Hours code sample.