Page 1 of 1

calculateAdvancedTour

Posted: Mon May 22, 2017 1:18 pm
by nikersch
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?

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
      }
    }
Thank you!

Re: calculateAdvancedTour

Posted: Wed Jun 07, 2017 7:52 am
by Bernd Welter
Hello Niko,

you can store the settings in a server side XML profile:
http://127.0.0.1:50030/manual/Default.h ... s%7C_____0
screenshot from the documentation of the profiles
screenshot from the documentation of the profiles
Does this answer the question?

Best regards,
Bernd