[Bug] Wrong Price Computed
https://www.waze.com/livemap/directions ... at=00%3A00
1st (4,10€): https://www.waze.com/livemap/directions ... at=00%3A00
2nd (toll free): https://www.waze.com/livemap/directions ... at=00%3A00
3rd (2,70€): https://www.waze.com/livemap/directions ... C9.1393075
The 22,10€ comes from the entry exit matrix Italy_NorthWest:
This price is correct if you drive through another (way longer) route that does not go through any other toll booths.Driving Entry-Exit: IT-A4-Bergamo -> IT-A7-Bereguardo - Pavia Nord
For permit '' price is 22.1. for ''
In the same matrix, there would be the combinations for the subtrip #1:
And for the subtrip #3:Driving Entry-Exit: IT-A4-Bergamo -> IT-A4-Bivio Tangenziale Est Out
For permit '' price is 4.1. for ''
So I guess now you're computing the price by taking the first and the last segment that belongs to a price matrix and retrieving the price, but that's not correct.Driving Entry-Exit: IT-A7-Barriera Milano Ovest In -> IT-A7-Bereguardo - Pavia Nord
For permit '' price is 2.7. for ''
Ain - Aout - ... other toll-free segments ... - Bin - Bout <- Your computed price: Ain to Bout
You need to scan all segments of the route and sum all different subsection.
Ain - Aout - ... other toll-free segments ... - Bin - Bout <- The right price: Ain to Aout + Bin to Bout
Re: [Bug] Wrong Price Computed