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
Overnight location in planovernight
- Bernd Welter
- Site Admin
- Posts: 2703
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Overnight location in planovernight
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:
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".
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:
- 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".
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...
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...