Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

905 Miovision Open Data #909

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

gabrielwol
Copy link
Collaborator

What this pull request accomplishes:

Some Miovision Open Data tables ready for discussion/comments.

A 15 minute view, based off of volumes_15min_mvt (TMC table), but extended to have ATR columns for the purpose of covering both TMC and ATR style data requests we currently handle.

A monthly summary by intersection. I simplified this somewhat versus our discussions, because I wanted it to be difficult to misinterpret (1 row per intersection per month), and let the 15min view answer detailed questions.

A new DAG to insert into these tables each month. Scheduled for the 3rd of each month. Runs a sqlcheck to make sure there is data for every day of the month before summarizing. Sends a status message when complete.

This was a draft in case we wanted to have a wide TMC view, like https://open.toronto.ca/dataset/traffic-volumes-at-intersections-for-all-modes/. We can delete when we're satisfied with the other approach above.

Issue(s) this solves:

What, in particular, needs to reviewed:

  • What to do about bicycle volumes (I naively grouped classifications 2,7,10 together for now)
  • The grouping of Trucks/Buses (Since streetcars have moved between classifications, I thought it was easiest to group these together...)
  • The ATR style columns added to TMC view

What needs to be done by a sysadmin after this PR is merged

Convert all these gwolofs tables to miovision_api schema.

@gabrielwol gabrielwol requested a review from radumas March 25, 2024 19:21
@gabrielwol gabrielwol self-assigned this Mar 25, 2024
@gabrielwol gabrielwol linked an issue Mar 25, 2024 that may be closed by this pull request
classification_type,
datetime_bin,
datetime_bin::date AS dt,
CASE WHEN date_part('hour', datetime_bin) < 12 THEN 'AM' ELSE 'PM' END AS am_pm,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: MOVE method finds peak hours ending within:
AM: 7:30 - 9:30
PM: 14:15 - 18:00

@gabrielwol gabrielwol added this to the Miovision pipeline updates milestone Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Miovision - Open data views
1 participant