Prices with multiple times

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.

{"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]}]}]}]}

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”?

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

Thanks,

I am looking at it now

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

And yet the tool claims you can :evil:

Screenshot 2019-08-08 at 11.54.57.png

Yeah, I have reported this post to the toll price email.

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.

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.

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