Locked

[Bug] Wrong Price Computed

Post by bedo2991
Bergamo_to_pavia.jpg
Bergamo to Pavia
(259.19 KiB) Downloaded 451 times
Entire trip: from Bergamo to Pavia (Waze says 22.10€ - Should be 6,80€)
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:
Driving Entry-Exit: IT-A4-Bergamo -> IT-A7-Bereguardo - Pavia Nord
For permit '' price is 22.1. for ''
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:
Driving Entry-Exit: IT-A4-Bergamo -> IT-A4-Bivio Tangenziale Est Out
For permit '' price is 4.1. for ''
And for the subtrip #3:
Driving Entry-Exit: IT-A7-Barriera Milano Ovest In -> IT-A7-Bereguardo - Pavia Nord
For permit '' price is 2.7. 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.
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
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Answers: 2
Has thanked: 237 times
Been thanked: 627 times

POSTER_ID:4945632

1

Send a message

Post by Inactive user -1697532064-
I've also seen this problem

Sent from my SM-G960U using Tapatalk
Inactive user -1697532064-
Wiki Master
Wiki Master
Posts: 1308
Has thanked: 549 times
Been thanked: 703 times
Send a message
Galaxy S20 FE on Mint
Retired SM Ohio
Then you will know the truth, and the truth will set you free.
-John 8:32

Post by Inactive user -1697532064-
bedo2991 wrote: Thu Sep 02, 2021 1:39 pm This bug has been fixed! :D

 
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.
Inactive user -1697532064-
Wiki Master
Wiki Master
Posts: 1308
Has thanked: 549 times
Been thanked: 703 times
Send a message
Galaxy S20 FE on Mint
Retired SM Ohio
Then you will know the truth, and the truth will set you free.
-John 8:32

Post by bedo2991
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.
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Has thanked: 237 times
Been thanked: 627 times
Send a message

Post by bedo2991
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& ... =255313774
2: 378886440 -> [60] Italy_NorthWest: Barriera Milano Est Out https://www.waze.com/it/editor?env=row& ... =378886440
Costs 3,50€ (Italy_NorthWest matrix) - https://www.waze.com/livemap/directions ... 9.66956735

Toll-Free: https://www.waze.com/livemap/directions ... 9.26748276

3: 255371782 -> [108] Italy_NorthWest: Barriera Milano Ovest In - https://www.waze.com/it/editor?env=row& ... =255371782 [Very Long Segment]
4: 264345430 -> [116] Italy_NorthWest: IT-A7-Bereguardo - Pavia Nord https://www.waze.com/it/editor?env=row& ... =264345430
Costs 2,70€ (Italy_NorthWest matrix) - https://www.waze.com/livemap/directions ... 9.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: .
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Has thanked: 237 times
Been thanked: 627 times
Send a message

Post by bedo2991
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/directi ... 0.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/directi ... tMGIvouhMw
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Has thanked: 237 times
Been thanked: 627 times
Send a message

Post by bedo2991
This bug has been fixed! :D
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Has thanked: 237 times
Been thanked: 627 times
Send a message

Post by bedo2991
These are the steps required to fix this by the toll files manager in your country: viewtopic.php?t=327143
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2390
Answers: 2
Has thanked: 237 times
Been thanked: 627 times
Send a message