Page 1 of 1

How to replace xRoute1.completeServiceInIntervals in xRoute2?

Posted: Mon Apr 14, 2025 7:45 am
by Bernd Welter
Hi there,

in the com.ptvag.xserver.xroute.TourPointDesc of xRoute1.calculateAdvancedTour a TourPointDesc it was possible to set the completeServiceInIntervals property:
  • completeServiceInIntervals boolean
    If true, arrival and complete service period must be within the opening intervals, otherwise only arrival must be within.
In com.ptvgroup.xserver.xroute.TourStopOptions of xRoute2 there's no direct successor to that property:
  • openingIntervals Interval[] 0..30 - 2.16The list of opening time windows. Opening intervals for this site, specified in one of the valid interval formats. Leaving this parameter empty means that the site is always open. Service can only start within one of the opening intervals. Moreover only StartDurationInterval and StartEndInterval are supported to define the opening intervals on a waypoint.
Is there a proper workaround for the xRoute1 approach?

Bernd

Re: How to replace xRoute1.completeServiceInIntervals in xRoute2?

Posted: Mon Apr 14, 2025 11:00 am
by Maximilian Vogel
What does xRoute1 return in case a service cannot be placed completely within an opening interval when completeServiceInIntervals is true?
  • Will there be violations?
  • Will there be two service events splitted into the duration that is within the opening interval and another one that is outside of the interval?
  • If there is another opening interval at a later time where the service fits entirely: Will the driver wait until it is open?
As I don't know the behaviour of xRoute1 in these cases, I don't know how to workaround this missing option in xRoute2.
But there is one simple thing the client application can do: If the start time of the service plus its duration is after the end of the opening interval, then the service doesn't fit into the opening interval and the client application can treat this how it treats violations or route not found errors.

Re: How to replace xRoute1.completeServiceInIntervals in xRoute2?

Posted: Tue Apr 15, 2025 11:50 am
by Bernd Welter
Hi Max,

challenging questions - I lack recent experience ;-)
But I made at least some experiment with my existing textclient:
  • Route from Hamburg to Mannheim: net driving time is about 10 hours
  • Both TourPointDesc operating intervals are 8 hours, service period is 1 hour
  • Obvious violation at the 2nd waypoint is reported.
TourPointDesc-Violations.png
Maybe we have to include some xRoute1 expert? And of course the colleague who asked the question (I am just the proxy) ;-) ...

Bernd