TimeDependency when toll is required
Posted: Mon Mar 20, 2023 9:49 am
Hi there,
every once in a while a client wonders about missing toll when they compute routes. In most cases the cause for this experience is the missing time consideration mode:
The following TimeConsiderationModes do not support a proper time context and therefore may ommit relevant toll contributions:
Some players ask which mode they should apply in their usage scenario. Well, sounds like a question of taste. Here are some ideas:
Bernd
every once in a while a client wonders about missing toll when they compute routes. In most cases the cause for this experience is the missing time consideration mode:
These modes require a reference time which is then be used to determine the time context of a segment.For toll segments where the price depends on the time of the segment usage we do only return a price if the time is known. This requires a proper time dependency mode such as
The following TimeConsiderationModes do not support a proper time context and therefore may ommit relevant toll contributions:
- None (simply means timeconsideration is set to NULL)
- Optimistic
Some players ask which mode they should apply in their usage scenario. Well, sounds like a question of taste. Here are some ideas:
- generic TENDER: if you want to determine a rough price of a route where you don't know the exact time context just go for a TollOnlyTimeConsideration and set the reference time to 12:00 on the next monday.
- Latest departure: if you want to know when you would have to leave from a waypoint to be in time on the next waypoint use ExactTimeConsiderationAtArrival together with the desired arrival at the next stop to determine the latest point in time when you'd be able to arrive in time.
- ETA calculation: if you know the current position of a vehicle and you want to determine the potential time of arrival just use ExactTimeConsiderationAtStart together with the current timestamp of the vehicles last GPS position
- Reconstruction: Probably the most challenging one. Reconstruction means that coordinates have been recorded during a trip and are matched to the road network afterwards in a popst processing step. This requires a map matching engine (xMapMatch2) and the output of that engine is then forwarded into xRoute 2 which does not have to recalculate the geometry but "simply" applies the toll on the given xMapMatch paths. Unfortuntely the MapMatcher 2 does not support timestamps. So it is up to the user to decide what time consideration and reference times he wants to use within the post processing xRoute call. If you are dealing with this I can only recommend to get in touch with a technical consultant at PTV to check this.
Bernd