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

Avg speeds #798

Merged
merged 11 commits into from
Jun 30, 2023
Merged

Avg speeds #798

merged 11 commits into from
Jun 30, 2023

Conversation

tiffanychu90
Copy link
Member

@tiffanychu90 tiffanychu90 commented Jun 30, 2023

segment speeds

  • for trip-level speeds, start with vp already sjoined to segments, then triangulate and select 5 vp per trip to calculate the change in distance and change in time
    • must use vp joined to segments because otherwise too many excess vp not traveling near shape appear, and that throws off speed calculations
  • drop extremely low and high speeds and then calculate the average speed for route-direction-time_of_day
  • attach the common_shape_id for the shape with most trips for route-direction combination
  • if we can't bundle the tabular dataset along with our segment speeds layer, then we will publish this as its own layer with the shape's line geometry
  • attach organization source_record_id, name, caltrans_district and standardize route names
  • in addition to speed_mph, include n_trips, avg_scheduled_trip_min, and avg_rt_trip_min (approximated based on vp timestamps)
  • Research Request - New speed tables: trip average speeds and average route speeds by time-of-day #790
  • Research Request - speeds by stop segments published to open data #761

TODO:

  • checked with the Caltrans GIS...need to update our metadata for new documentation standards
  • not sure if tabular data can be associated with an existing layer
  • considered publishing wide dataset with columns like am_peak_speed, am_peak_n_trips, but this gets a little unwieldly if we want to make available more metrics beyond speed and n_trips.

@github-actions
Copy link

nbviewer URLs for impacted notebooks:

@github-actions
Copy link

nbviewer URLs for impacted notebooks:

@tiffanychu90 tiffanychu90 merged commit 32b2c54 into main Jun 30, 2023
@tiffanychu90 tiffanychu90 deleted the avg-speeds branch June 30, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research Request - New speed tables: trip average speeds and average route speeds by time-of-day
1 participant