Search for content

Plan with Drivers' Working Hours

This part of the code sample explains how the request has to look like to create a simple plan for a round trip containing vehicles, and drivers who are limited by drivers' working hours regulations.

In this example, the depot location and the vehicles are fixed:

  • One Depot is shown with a red icon on the map.
  • One vehicle with profile EUR_TRAILER_TRUCK.
  • Type of orders are pickup and delivery with pickup always being at the depot.
  • The planning horizon is from 8:00 until 20:00.


In addition to the list of customer locations, you can specify the following restrictions for the driver:

  • Preset drivers' working hour regulation that is applicable to the driver.
  • Custom Break rule for the driver.
  • Custom Rest rule for the driver.
  • Maximum driving time and travel time that the driver is allowed to have.

For more information about break and rest rules refer to the Driver's Working Hours concept.