Transportation theme access restrictions "during" as STRUCT #228
Replies: 2 comments 1 reply
-
We follow the OSM opening hours specification, although that fact should be better documented: https://github.com/OvertureMaps/schema/blob/main/schema/defs.yaml#L153C11-L153C78 It's probably worth considering a new structure for this data as you've proposed, but I would say it's currently a low priority for the team. Just FYI - We do some processing/normalizing internally to fix some of the values but there are known issues. I would highly recommend using a library like https://github.com/remi-dupre/opening-hours-rs/tree/master/python to handle this as the rules are fairly complex. |
Beta Was this translation helpful? Give feedback.
-
An idea to handle OSM's dawn|sunrise|sunset|dusk events would be to calculate those for the median date of each Overture release at the latitude of the feature. |
Beta Was this translation helpful? Give feedback.
-
At 2024-06-13-beta.1 the during column in access_restrictions is a varchar with uncontrolled data in it (my observation).
For example 'Mo-Fr08:45-09:3015:00-15:45'. for segment id 084194adffffffff046bf1ffa89acc2c.
To unpack this into very useful time intervals can it me made a struct, like this? (haven't checked for typos)
{"Mon":[["8:45","9:30"],["15:00","15:45"]],"Tue":[["8:45","9:30"],["15:00","15:45"]],"Wed":[["8:45","9:30"],["15:00","15:45"]],"Thu":[["8:45","9:30"],["15:00","15:45"]],"Fri":[["8:45","9:30"],["15:00","15:45"]]}
Time data is high value. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions