calculateAdvancedTour

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
nikersch
Posts: 4
Joined: Mon May 08, 2017 6:38 am

calculateAdvancedTour

Post 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!
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: calculateAdvancedTour

Post 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
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... :twisted:
Post Reply