This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Here's some interesting difference in the calculation of toll if you compare the HERE API with the PTV engine...
Took me a while to gather the cause, therefore I'd like to share this effect:
The waypoint list is
Left: output of PTV Developer (and xRoute 2) Right: output of HERE There are two more large contributions in the HERE output
Now as you can see there's a significant gap in the prices returned by the two engines. And that is because of different design of the engines when it comes to the handling of "open toll sections": an open toll section is a section where you have to pay a given unique price no matter at which exit you leave the highway. Now here's the thing:
The HERE api decides to add the contribution of the A2 because the section in charge is entered.
The PTV api decides NOT to add the contribution of the A2 because the section in charge is never left
The route ends ON the highway.
Tricky, isn't it? So the next question is "does it make sense to compute a route where the end of the track is on a highway?"
Bernd
Official tarrifs taken from https://www.autostrada-a2.pl/en/tolls/tool-rates-cat-4/ No matter whether you leave the A2 at Slupca or Wrzesnia: same price. No matter whether you leave the A2 at Poznan Wschod, Poznan Krzesiny, ... or Poznan Zachod: always 200 PLN...
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...
Puh, I can only forward that info to the toll experts.
In fact one could pose the question "when will your driver be invoiced? - When he really leaves the highway / toll section?"
Thanks for the challenge,
Bernd
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...
I don't really understand the problem.
In countries such as France and Italy the price is determined depending on where you join the toll road and where you leave it². And it seems to be the same for that particular toll system in Poland. So if your destination is on the toll road, this information where the toll road is joined and left is simply not complete and hence, no toll price can be calculated. This is how the PTV engine behaves as this is also the underlying data model.
On the other hand I would agree to the argument that once you have passed (and not taken) a certain exit B, then the price as if you left at exit B could be returned as minimum toll price as you can only leave at the next exit C after the one you have just passed (B) because the assumption that the toll price will certainly not decrease when you stay longer on the toll road is reasonable. Of course, I do not know how HERE models their data. The screenshot is inconclusive for me.
Neither approach is wrong because the situation is undefined.
² Yes, I know that there are a exceptions in those two countries where you pay a fixed price.