Post Reply

Prices with multiple times

Post by atrophicshiner
I'm receiving an issue warning during save when prices have more than one time slot added, even though the help text shows the format to use.

Price: 0.7 Times: 00:00-08:59,20:00-23:59
Price: 1.5 Times: 09:00-19:59

...section:1:permit='':valid_days:valid_minutes: Definition for day 0 for minute 1200 (20:00) is not found

When 3 times ranges are set it only highlights the issue on the first price change

Price: 0.7 Times: 00:00-06:59,09:30-15:59,18:30-23:59
Price: 1.5 Times: 07:00-09:29,16:00-18:29

...section:1:permit='':valid_days:valid_minutes: Definition for day 0 for minute 570 (09:30) is not found

It does actually save the file and testing in the playground does produce the correct pricing at times around the price changes.

Code: Select all

{"tolls":[{"toll_id":"UK-Oxfordshire-WhitchurchBridge","road_local_name":"Whitchurch Bridge","currency":"£","currency_code":"GBP","comments":"http://whitchurchbridge.com/","polyline":"LINESTRING (-1.0852020490738141 51.487252802984564, -1.0850518453689801 51.48647449183648)","type":"static","rules":["pay_per_section"],"sections":[{"section_id":"1","road_local_name":"B471 - Whitchurch Road","section_local_name":"Whitchurch Bridge","location":[-1.085137676057456,51.486882021219074],"segments":[{"id":263629110,"forwards":true,"fromNode":127746812,"toNode":127746813,"permalink":"https://www.waze.com/editor?env=row&lon=-1.0851239658465319&lat=51.486871909435294&zoom=5&segments=263629110"},{"id":263629110,"forwards":false,"fromNode":127746813,"toNode":127746812,"permalink":"https://www.waze.com/editor?env=row&lon=-1.0851239658465319&lat=51.486871909435294&zoom=5&segments=263629110"}],"prices":[{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[0],"valid_minutes":[0,539,1200,1439]},{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.6,"valid_days":[0],"valid_minutes":[540,1199]},{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[1,2,3,4,5],"valid_minutes":[0,419,1260,1439]},{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.6,"valid_days":[1,2,3,4,5],"valid_minutes":[420,1259]},{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[6],"valid_minutes":[0,479,1200,1439]},{"permit_id":"","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.6,"valid_days":[6],"valid_minutes":[480,1199]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[0],"valid_minutes":[0,539,1200,1439]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.4,"valid_days":[0],"valid_minutes":[540,1199]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[1,2,3,4,5],"valid_minutes":[0,419,1260,1439]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.4,"valid_days":[1,2,3,4,5],"valid_minutes":[420,1259]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0,"valid_days":[6],"valid_minutes":[0,479,1200,1439]},{"permit_id":"Bridge Card","limit_to_vehicles":["PRIVATE","TAXI"],"price":0.4,"valid_days":[6],"valid_minutes":[480,1199]}]}]}]}
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 6000
Answers: 8
Answers: 8
Has thanked: 1603 times
Been thanked: 2329 times

POSTER_ID:17167595

1

Send a message
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by Inactive user -1697532064-
It works fine for me either with the 24/7 default price first or with all prices listed on part-time format. I do not get the error anymore either
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 atrophicshiner
I have not included a valid date range as toll applies indefinitely. When the times are split into separate price fields I get no warning.

I have saved a public file which can be found under UK_WhitchurchBridge or searching for my username.

EDIT: File deleted - Full JSON code is in first post
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 6000
Answers: 8
Has thanked: 1603 times
Been thanked: 2329 times
Send a message
Last edited by atrophicshiner on Tue Aug 20, 2019 1:01 pm, edited 1 time in total.
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by atrophicshiner
And yet the tool claims you can :evil:
Screenshot 2019-08-08 at 11.54.57.png
(20.83 KiB) Downloaded 296 times
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 6000
Answers: 8
Has thanked: 1603 times
Been thanked: 2329 times
Send a message
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by atrophicshiner
Something to note, I've been working on an entry / exit matrix today and this saves without warning when adding multiple times in the valid time box.
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 6000
Answers: 8
Has thanked: 1603 times
Been thanked: 2329 times
Send a message
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by atrophicshiner
It would appear that this no longer throws an error on save. It would be nice if Staff who are meant to be monitoring this sub-forum would acknowledge the issue and state that is has actually been resolved.
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 6000
Answers: 8
Has thanked: 1603 times
Been thanked: 2329 times
Send a message
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by jm6087
Without being able to look at the entire file, the first question I have is are you trying to enter a "New_valid_date_range"?
jm6087
Waze Global Champs
Waze Global Champs
Posts: 9528
Answers: 21
Has thanked: 837 times
Been thanked: 2966 times
Send a message
Thanks,
John
US Global Champ



Post by jm6087
Thanks,

I am looking at it now
jm6087
Waze Global Champs
Waze Global Champs
Posts: 9528
Answers: 21
Has thanked: 837 times
Been thanked: 2966 times
Send a message
Thanks,
John
US Global Champ



Post by jm6087
Apparently you can't have multiple times in the valid time box

00:00-06:59,21:00-23:59

When I removed the ,21:00-23:59 from the time slot and created a new toll price for the time range, it saved with no error
jm6087
Waze Global Champs
Waze Global Champs
Posts: 9528
Answers: 21
Has thanked: 837 times
Been thanked: 2966 times
Send a message
Thanks,
John
US Global Champ



Post by jm6087
atrophicshiner wrote:And yet the tool claims you can :evil:
Yeah, I have reported this post to the toll price email.
jm6087
Waze Global Champs
Waze Global Champs
Posts: 9528
Answers: 21
Has thanked: 837 times
Been thanked: 2966 times
Send a message
Thanks,
John
US Global Champ