calculateAdvancedTour
Posted: Mon May 22, 2017 1:18 pm
Hello,
is it possible for calculateAdvancedTour in xRoute to define a ptv-server side "profile/setting" that contains the touroptions / regulations of rest and driving periods?
For example can I put those options into ptv-server centrally somehow or do I need to pass it with every call to the service? If I can store them on the ptv-server, then how to reference a certain "profile" during the call?
Thank you!
is it possible for calculateAdvancedTour in xRoute to define a ptv-server side "profile/setting" that contains the touroptions / regulations of rest and driving periods?
For example can I put those options into ptv-server centrally somehow or do I need to pass it with every call to the service? If I can store them on the ptv-server, then how to reference a certain "profile" during the call?
Code: Select all
"tourOptions": {
"restrictToSingleOperatingInterval": false,
"driverSettings": {
"remainingPeriods" : "",
"breakRuleDisabled": false,
"dailyRestRuleDisabled": false,
"weeklyRestRuleDisabled": false,
"workingRuleDisabled": false
},
"regulations": {
"$type": "DriverRegulations",
"breakRule": {
"drivingPeriod": 16200,
"breakPeriod1": 900,
"breakPeriod2": 1800
},
"dailyRestRule": {
"regularRestPeriod": 39600,
"firstSplitRestPeriod": 10800,
"secondSplitRestPeriod": 32400,
"reducedRestPeriod": 32400,
"numberOfReducedRestPeriods": 3,
"regularDrivingPeriod": 32400,
"extendedDrivingPeriod": 36000,
"numberOfExtendedDrivingPeriods": 2,
"maximumPeriodBetweenEndOfDailyRests": 86400
},
"weeklyRestRule": {
"maximumPeriodBetweenWeeklyRests": 518400,
"maximumWeeklyDrivingPeriod": 201600,
"maximumBiweeklyDrivingPeriod": 324000,
"weeklyRestPeriod": 162000
},
"workingRule": {
"breakPeriod": 1800,
"extendedBreakPeriod": 2700,
"maxWorkingPeriodWithoutBreak": 21600,
"maxWorkingPeriodWithoutExtendedBreak": 32400,
"minPartialBreakLength": 900,
"maxWorkingPeriodWithoutDailyRest": 28000,
"maxWorkingPeriodPerWeek": 172800,
"dailyRestPeriod": 39600
}
}