Skip to content

Add derived vehicle position trip metrics #3997

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

tiffanychu90
Copy link
Member

@tiffanychu90 tiffanychu90 commented Jun 19, 2025

Description

There are several vehicle position trip-grain metrics we want, and we'll join our derived metrics with the existing fct_vehicle_positions_trip_summaries:

  • vp completeness (number of minutes with at least 2+ vp)
  • spatial accuracy (% of vp within certain buffer of shape)

Note: think about the order of the data models:

  • fct_vehicle_positions_trip_summaries (macro used) -> fct_vehicle_locations -> this table (combo of the prior 2 + more)
  • I think this order makes sense, but is it confusing for there to be an automated-macro-produced summary table + another table that expands on it?

Resolves #3932

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

How has this been tested?

23:12:35  1 of 1 START sql table model tiffany_mart_gtfs.fct_vehicle_positions_trip_metrics  [RUN]
23:12:55  1 of 1 OK created sql table model tiffany_mart_gtfs.fct_vehicle_positions_trip_metrics  [CREATE TABLE (707.5k rows, 5.1 GiB processed) in 20.07s]
23:12:55  
23:12:55  Finished running 1 table model in 0 hours 0 minutes and 34.81 seconds (34.81s).
23:12:56  
23:12:56  Completed successfully
23:12:56  
23:12:56  Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1

Post-merge follow-ups

  • No action required
  • Actions required (specified below)

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.

Epic: GTFS-RT Availability of Acceptable VehiclePosition Messages
1 participant