department-for-transport-public / D-TRO

Digital Traffic Regulation Orders (D-TRO)
MIT License
3 stars 1 forks source link

"No return" attribute #21

Open Karol-Kolenda opened 1 month ago

Karol-Kolenda commented 1 month ago

I seem to be missing something, and would appreciate some guidance on how to encode the "no return" parameter of a parking regulation. Specifically, I have: Parking, Mon-Sat, 8am-7pm, 20 minutes, No return within 40 minutes. How can I represent this (duration and no return interval)?

I am aware of the PermitSubjectToFee properties maximumAccessDuration and minimumTimeToNextEntry, but since they strictly relate to the paid permit (Subject To Fee), they don’t quite fit my needs here.

stm-john-cooper commented 1 month ago

Thanks for raising this issue. We will investigate the attribute(s) that exist and report back.

JHB9876 commented 4 weeks ago

On behalf of DfT:

Many thanks for raising this issue, Karol. The section of the data specification (the data model and hence the JSON schema) addressing conditions relating to permits is developmental and has not been subject to wide testing. The issue you have raised illustrates that some attributes may be placed in the wrong class (not allowing such conditions to be describe for permits that do not have an associated payment). We will certainly look to review this, and welcome inputs on which data configuration could meet the range of permit conditions that are practically found within existing TROs. We will look to adjust this in a future release.

In the meantime, using v3.2.4 of the data specification we suggest you use the existing attributes in the "PermitSubjectToFee" class. Note "amountDue" is optional.

stm-john-cooper commented 1 week ago

Added to backlog.

stm-john-cooper commented 6 hours ago

see also: https://github.com/department-for-transport-public/D-TRO/issues/45