Question about Break Rules in xTour1 and Optiflow Developer
Posted: Fri Mar 28, 2025 2:59 pm
ONe of our partners just looked into the handling of certain break- and rest rules in xTour1 and wants to compare them with the PTV Developer Optiflow API:
This works both with xTour1 and Optiflow:We have a huge prospect that has a strong focus on break rules triggered by German Laws / Workers Councils who demand them to fullfil the legal requirements of German / European laws, especially they want to consider a 30min break after a 6 hours working period.
How can we tackle this with the existing xTour1 API which is used in the current application? How would PTV Developer RouteOptimizatiopn Optiflow handle this? Here's an example / expected result:
• Start of work: 08:00
o 1st driving leg
o 1st customer visit
o 2nd driving leg
o 2nd customer visit
o 3rd driving leg ends somewhere 14:00
BREAK of 30 minutes: 14:00 - 14:30
o 3rd customer visit
o ...
• End of work : somewhere 16:30
- xTour1: Please check the com.ptvag.xserver.xtour.WorkingRule.
- Route Optimization Optiflow: offers a solution on Vehicle.Breaks level (doc):
- maximumWorkingDuration - required - integer : Describes how long [seconds] the driver may work without taking a break of at least the specified duration.
- minimumBreakDuration - required - integer : Specifies the duration [seconds] of a break a driver must take if they exceed the maximum working duration.