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

Research Task - add route identifiers to shape-aggregated segment speeds #1218

Closed
edasmalchi opened this issue Aug 29, 2024 · 0 comments
Closed
Assignees
Labels
gtfs-rt Work related to GTFS-Realtime open-data Work related to publishing, ingesting open data research task Sub-issues within research request epics

Comments

@edasmalchi
Copy link
Member

Research Task

  • Question or Goal: overarching goal of this issue

The rt_segment_speeds pipeline currently produces two parallel levels of aggregation: by shape and by route/direction

To migrate speedmaps per #1186, I'd like to use the segment speeds data aggregated by shape, but it's also important to have route identifiers (route_short_name, route_id) preserved in that aggregation in order to display route info on the maps and eventual, matching, open data export.

I realize that adding route identifiers to the shape grouping columns could lead to a finer grain of aggregation (generally trips all sharing a route can share multiple shapes, usually at least 2 but there's no guarantee in the GTFS spec that I'm aware of, theoretically trips sharing a shape could share multiple routes).

This seems undesirable. I'd rather propose keeping the grouping columns as-is, and then "aggregate" route identifiers within the groupby (min, max, whatever), keeping the same aggregation grain but with route identifiers that would generally match based on actual practice.

  • Expected Outputs / Findings: what do you hope to have created when this is complete?

shape-aggregated segment speeds in pipeline now include route identifiers

@edasmalchi edasmalchi added research task Sub-issues within research request epics gtfs-rt Work related to GTFS-Realtime open-data Work related to publishing, ingesting open data labels Aug 29, 2024
@edasmalchi edasmalchi self-assigned this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtfs-rt Work related to GTFS-Realtime open-data Work related to publishing, ingesting open data research task Sub-issues within research request epics
Projects
None yet
Development

No branches or pull requests

1 participant