Page 1 of 1

How to construct REMAINING_PERIODS for realtime planning

Posted: Fri Feb 10, 2017 1:35 pm
by GuenterWestphal
Hello everybody,

we want to use xtour / xroute during the execution of tours. Our telematics system provides data such as remaining driving periods of our drivers but we can’t see how to create the string that is necessary as input parameter, namely the string remainingPeriods in DriverSettings. Is there a documentation and/or, preferably, a code snippet available? Any hint will be much appreciated!

Kind Regards,

Günter Westphal

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Fri Feb 10, 2017 2:26 pm
by Bernd Welter
Hi there,

I understand your usecase and forwarded it to our product management who already confirmed to put it on the priority list:
  • no guarantee for final consideration
  • but valuable input for further improvements in module xTour2
For now the parameter can only be used in combination with a previous call due to the missing documentation.
We'll see. Thanks for the recommendation,

Bernd

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Mon May 22, 2017 7:15 am
by nikersch
Hello,

we would also like to provide the remaining driving hours for a driver to call calculateAdvancedTour(). I found an example in a public log-file on the web:

Code: Select all

"remainingPeriods":
"22 serialization::archive 9 0 2 0 0 1 3 0 3 0 0 0 0 16200 0 0 0 1 0 39600 0 288000 0 0 3 2147483647 2147483647 2147483647 0 0 0 0 0 1 0 0 0 288000 0 0 892800 0 0 288000 0 0 6 0 0 0 288000 0 0 0 0 0 0 0 0 0 3 0 0 34388 2147483647 0 34388 0 4 0 16200 900 1800 0 39600 10800 32400 32400 3 32400 36000 2 604800 86400 0 518400 201600 162000 324000 345600 0 1800 2700 21600 32400 900 28800 172800 39600 0 0 0 0 0 0 0 0 0",
but dont know how to interpret that in detail.

Given a driver regulation that says that after 4h driving there is a 1h break, I want to call the calcAdvancedTour with e.g. remaining drive time 2h. The expected behaviour then is that for the first section the driver has 2h of driving left followed by a 1h break and then again 4h driving.

Thank you!

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Mon May 22, 2017 7:42 am
by Bernd Welter
Hi together,

the string itself is not documented and the interface is simply able to understand the remaining periods that are returned by a previous routing.
Remaining Periods as part of the output of a previous calculateAdvancedTour
Remaining Periods as part of the output of a previous calculateAdvancedTour
From my current understanding, the documentation or simplification of such a parameter isn't part of future xRoute 1.X versions but a hot topic for xTour 2.

Best regards Bernd Welter

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Thu Jun 28, 2018 7:54 am
by Bernd Welter
Hi there,

I received a statement from DEV about "when and how will we implement the available break- and rest credits?":
  • The topic is on our roadmap for xServer2.
  • We do not have a concrete "short term" schedule for it so far
  • We do not expect this to be available in 2018.
So I do not expect this to be part of the xServer1 at all...
Bets regards,
Bernd

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Thu Jul 04, 2019 3:30 pm
by nr-tis
Hi Bernd,

can you give us an update for this feature in xserver2? Is it already implemented and available in xserver2 internet?

Best Regards,
Norbert

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Thu Jul 04, 2019 3:44 pm
by Bernd Welter
Hi there,

nothing you can test so far but work is in progress.
Here's a little experimental teaser
Upcoming... ExecutionState...
Upcoming... ExecutionState...
Let's see wether 2.14 will already offer this.

Best regards,
Bernd

Re: How to construct REMAINING_PERIODS for realtime planning

Posted: Wed Oct 05, 2022 2:40 pm
by Bernd Welter
just found this post. In the meantime we added a lot more flexibility to the topic "break- and rest rules"...

Drivers work logbook, flexible rules, configurable working hours and more

Check the API doc!

Best regards,
Bernd