The reason seems to be the combination of ExactTimeConsiderationAtArrival and tourRestrictions. From my POV I do not see a use case and see this as some kind of "see there is an error and I made no mistake" report to me.ExactTimeConsiderationAtArrival mode can not be used if TourRestrictions are requested.
My idea to solve the issue was to remove tourRestrictions from the request (or better to say not to add it) if ExactTimeConsiderationAtArrival is active. However I still got the same error response. It turned out that TOUR_EVENT caused the issue.
Question:
Can someone give me a pointer to the documentation that says that the combination of ExactTimeConsiderationAtArrival and tourRestrictions is not possible?
Dev Hint:
Unless it is another error I would appreciate if the error would contain TOUR_EVENT.
Requests snippets:
Request snippet 1: (with ExactTimeConsiderationAtArrival and tourRestrictions)
Code: Select all
{
"routeOptions": {
"timeConsideration": {
"$type": "ExactTimeConsiderationAtArrival",
"referenceTime": "2023-02-08T00:00:00"
},
"tourRestrictions": {
"configurableWorkingHours": {
"breakRule": {
"breakTime": 901.0,
"maximumDrivingTimeBetweenBreaks": 3601.0
},
"dailyRestRule": {
"dailyRestTime": 10801.0,
"maximumDrivingTimeBetweenDailyRests": 7201.0,
"dailyRestPosition": "ANYWHERE"
}
}
}
},
"resultFields": {
"eventTypes": [
"ROUTE_VIOLATION_EVENT", "TOUR_EVENT"
]
}
}
Request snippet 2: (with ExactTimeConsiderationAtArrival and w/o tourRestrictions, but TOUR_EVENT)
Code: Select all
{
"routeOptions": {
"timeConsideration": {
"$type": "ExactTimeConsiderationAtArrival",
"referenceTime": "2023-02-08T00:00:00"
}
},
"resultFields": {
"eventTypes": [
"ROUTE_VIOLATION_EVENT", "TOUR_EVENT"
]
}
}
A message that includes "eventTypes TOUR_EVENT" is appreciated!
Request snippet 3: (with ExactTimeConsiderationAtArrival and w/o tourRestrictions and TOUR_EVENT)
Code: Select all
{
"routeOptions": {
"timeConsideration": {
"$type": "ExactTimeConsiderationAtArrival",
"referenceTime": "2023-02-08T00:00:00"
}
},
"resultFields": {
"eventTypes": [
"ROUTE_VIOLATION_EVENT"
]
}
}