Hi Bernd,
We want to perform a tour optimization based on a time dependent distance matrix which also considers the drivers working hours / break- and rest rules. Our request fails with the following error message:
ParameterConflictFault: /PlanToursRequest/planToursOptions/restrictions/workingHours/@workingTimeDirective:EU_2002_15_EC with /PlanToursRequest/distanceMode/@id:created without MultipleTravelTimesConsideration
In the documentation we read that we need a Multiple Travel Times Distance Matrix Which requires xDima and then the distance mode “ExistingDistanceMatrix” (initially we used DirectDistance).
How do we have to change our request to be successful? Is this possible with the current version of the API?
Thanks,
Kevin
Combination of working hours and time dependent dima?
- Bernd Welter
- Site Admin
- Posts: 2703
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Combination of working hors and time dependent dima?
Hello Kevin,
first of all the xTour should be able to consider a MultipleTravelTimesDima (DistanceMode) under some specific circumstances: if no Break- and rest rule is applied:
Best regards,
Bernd
first of all the xTour should be able to consider a MultipleTravelTimesDima (DistanceMode) under some specific circumstances: if no Break- and rest rule is applied:
So at least the first part of your requirement is possible but requires the following steps:DistanceMode : Contains settings that specify how distances are retrieved for tour planning. These settings apply to all vehicles in the request. When using direct distance the driven distances are estimated with a detour factor of 1.38 and for the duration a speed of 60 km/h is assumed. Time dependent and non time dependent distance matrices must not be used together in a request. If time dependent distance matrices are used, no driving time regulation must be set.
- compute a distance matrix through xDima.createDistanceMatrix and retrieve the DimaID
- set DistanceMode in the planToursRequest to "ExistingDistanceMatrix" and use the DimaID from above
Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...