How to get break generated from ConfigurableWorkingHoursPreset
Posted: Mon Dec 30, 2024 4:24 pm
Hi,
I`ve started testing the ConfigurableWorkingHoursPreset parameter which can be set for:
My test on xTour/planTours (Fleet/Drivers/ConfigurableWorkingHoursPreset) went fine -> a break was added in the response before the 4.5h continuous driving time.
But when I try to use the same setup in xRoute/calculateRoute (RouteOption/TourRestrictions/ConfigurableWorkingHoursPreset) I cannot see any clear data in the response indicating where the break was added.
The only place in the xRoute response that I`ve noticed something related to the break is in the segments: which according to the Segment type documentation it can represent a driver break.
After I removed the ConfigurableWorkingHoursPreset option, this segment type was removed as well proving that it was added by it.
My question is actually how can I determine after which waypoint the break is appears in xRoute?
I was expecting the following:
I`ve attached the xRoute/calculateRoute request xml file. The response file is too large to be uploaded as it is so I`ve removed most of the segment nodes.
I`ve started testing the ConfigurableWorkingHoursPreset parameter which can be set for:
- xTour/planTours
- xRoute/calculateRoute
My test on xTour/planTours (Fleet/Drivers/ConfigurableWorkingHoursPreset) went fine -> a break was added in the response before the 4.5h continuous driving time.
But when I try to use the same setup in xRoute/calculateRoute (RouteOption/TourRestrictions/ConfigurableWorkingHoursPreset) I cannot see any clear data in the response indicating where the break was added.
The only place in the xRoute response that I`ve noticed something related to the break is in the segments: which according to the Segment type documentation it can represent a driver break.
After I removed the ConfigurableWorkingHoursPreset option, this segment type was removed as well proving that it was added by it.
My question is actually how can I determine after which waypoint the break is appears in xRoute?
I was expecting the following:
- A new waypoint is added representing the break`s location
- A break tour event included in the Route event
I`ve attached the xRoute/calculateRoute request xml file. The response file is too large to be uploaded as it is so I`ve removed most of the segment nodes.