[Bug] Wrong Price Computed

Bergamo_to_pavia.jpg
Entire trip: from Bergamo to Pavia (Waze says 22.10€ - Should be 6,80€)
https://www.waze.com/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.1842858%2C9.14697647&from=ll.45.6982642%2C9.6772698&at=00%3A00

1st (4,10€): https://www.waze.com/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.55710176%2C9.33057261&from=ll.45.6982642%2C9.6772698&at=00%3A00
2nd (toll free): https://www.waze.com/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.39062435%2C9.13897491&from=ll.45.55640162%2C9.33007908&at=00%3A00
3rd (2,70€): https://www.waze.com/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.1842858%2C9.14697647&from=ll.45.39098899%2C9.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.

In the same matrix, there would be the combinations for the subtrip #1:

And for the subtrip #3:

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.
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

I’ve also seen this problem

Sent from my SM-G960U using Tapatalk

Any update on this one?
Did anyone check if it’s a bug or a configuration error?

We are live in production in Italy and providing the wrong prices.

Not having anything better to do, for celebrating the 1st birthday of this bug, I’ve checked and fixed all the broken toll-segments we had in Italy and thoroughly checked this route again (now, due to a closure, the route goes through the Toll-free highway A50, but the wrong Waze-computed price, of course, does not change).

Now I am 99,9% confident this is not a configuration error but an actual bug.

The boring Data for Nerds
serverUniqueId: “m4207711124845261017”

Toll-Segments IDs -> [Segment position in the results array] <Toll File name>: <Section name> <permalink>
1: 255313774 -> [35] Italy_NorthWest: IT-A4-Bergamo https://www.waze.com/it/editor?env=row&lon=9.66877&lat=45.67310&s=1145042399&zoom=5&segments=255313774
2: 378886440 -> [60] Italy_NorthWest: Barriera Milano Est Out https://www.waze.com/it/editor?env=row&lon=9.26880&lat=45.55620&s=1144520159&zoom=7&segments=378886440
Costs 3,50€ (Italy_NorthWest matrix) - https://www.waze.com/livemap/directions?overlay=false&rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.55626656%2C9.26782608&from=ll.45.68458215%2C9.66956735

Toll-Free: https://www.waze.com/livemap/directions?overlay=false&rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.39046391%2C9.1389513&from=ll.45.55619895%2C9.26748276

3: 255371782 -> [108] Italy_NorthWest: Barriera Milano Ovest In - https://www.waze.com/it/editor?env=row&lon=9.13801&lat=45.38755&s=1144520159&zoom=5&segments=255371782 [Very Long Segment]
4: 264345430 -> [116] Italy_NorthWest: IT-A7-Bereguardo - Pavia Nord https://www.waze.com/it/editor?env=row&lon=9.04770&lat=45.24808&s=1145042399&zoom=7&segments=264345430
Costs 2,70€ (Italy_NorthWest matrix) - https://www.waze.com/livemap/directions?overlay=false&rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.24591744%2C9.05199409&from=ll.45.39028308%2C9.13890839

Waze price: 22,10€ (Matrix price between Segments 1 and 4) instead of 6,20€ (3,50€+2,70€), only 15,90€ off :roll: .

Today I got reported another price error due to this bug:

Route from A4 Bescia Ovest -> A58 Pozzuolo Martesana: https://www.waze.com/it/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=ll.45.51615846%2C9.43494916&from=ll.45.52850131%2C10.16830802

There are 2 possible toll routes, one through the A4 (6,90€) and one through the new A35 (11,20€). The price of the A35 is about twice the price of the A4.

When driving through the A35, you get two “barriers” (toll-booths) to pay (A4 Castegnato and A35 Chiari Est).

Waze prices:
Through A4: 6,90€ (correct)
Through A35: 6,90€ (wrong, should be 11,20€, 4,30€ off).

It gets even worst if you select a destination further away from the exit toll booth, where you would get out somewhere else from the A4. In that case, Waze suggests that the A35 would be cheaper than the A4. Example: https://www.waze.com/it/livemap/directions?rp_options=USE_TOLL_PRICES%3At&rp_id=beta&to=place.Ei9WaWEgTHVkb3ZpY28gQXJpb3N0bywgMjAwOTAgVmltb2Ryb25lIE1JLCBJdGFseSIuKiwKFAoSCZMonJv5x4ZHEdHCCOgU3Nd7EhQKEgn73vhx48eGRxHuFutmU69Iow&from=place.ChIJnd2JPUDngUcRqtMGIvouhMw

This bug has been fixed! :smiley:

You sure? I am still seeing it on RBS. I still get a cash price from Clearville to Albrightsville, PA of $56.10, the same one I mentioned in Discord. If the bug were fixed, it would show $24.40.

These are the steps required to fix this by the toll files manager in your country: https://www.waze.com/forum/viewtopic.php?t=327143