Overnight location in planovernight

This forum deals with any kind of trip optimization based on xTour1, xTour2 and the Developer APIs "RouteOptimization" and "SequenceOptimization". No matter whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Post Reply
act_wi
Posts: 4
Joined: Wed May 24, 2023 2:10 pm

Overnight location in planovernight

Post by act_wi »

Hey guys,

quick question:

We're using the request planovernight in xTour1:

If I am outside the home distance radius and it is planning an overnight stay,
I currently know how long he will be traveling, but not to "where".

Is there an option for this, or do I have to solve it with business logic after planning?

Example:

Last customer finishes at 15.30
End of work 17.00
Journey to the next customer on the following day 3h

Where is he after 1.5h at the end of work?

Thanks Andreas
User avatar
Bernd Welter
Site Admin
Posts: 2703
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Overnight location in planovernight

Post by Bernd Welter »

Hello Andreas,

the quick response to the question "Where is he after 1.5h at the end of work?2 is probably "it is where it was right at the end of work because the vehicle won't move outside working intervals." But here's the response you were probably looking for: if you want to determine the position of a vehicle you have to look into the events and derive the info from them. Here's an example:
xTour1: event list of a vehicle
xTour1: event list of a vehicle
  • If the Event is a DRIVING event, then this means you move from the previous location ID to the succeeding location ID within the interval which is covered by the event itself. Now you can distinguish between
    • Simple approach: "you are on the way from location PRE to location SUCC.
    • The more challenging approach (post-process): perform an additional "1:1 routing" from PRE to SUCC and look for the vehicles precise position. This is more complicated and probably in most cases not required
  • In any other case you simply do not move: you are located at the position of the last "location ID".
Bernd
By the way: this kind of response is not restricted to the overnight case - the interpretation would be the same for a regular planBasicTours, e.g. with "toursMustFitIntoSingleInterval=false".
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