OvertureMaps / OvertureMaps/schema

Transportation theme access restrictions "during" as STRUCT

Open
#229 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

theme - transportation 🛣
Dominant language
Python
Stars
213
Forks
22
Avg merge
3d 3h
Merged PRs (30d)
31

Description

Discussed in https://github.com/OvertureMaps/schema/discussions/228

Originally posted by BruceHarold June 28, 2024
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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.