Skip to content

Generate individual retrospective accessibility feeds #1504

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

Merged
merged 14 commits into from
Jun 30, 2025

Conversation

mrtopsyt
Copy link
Contributor

@mrtopsyt mrtopsyt commented Jun 6, 2025

Changes

  • Added a notebook to generate retrospective accessibility feeds given a schedule feed and a gtfs schedule dataset name, by filtering trips.txt to remove trips that are not in the schedule, and by re-creating stop_times.txt to have values based on the schedule_rt_stop_times gtfs funnel tables.
  • Included functions to impute values in defined cases to ensure that feeds can be accepted by trip planners:
    • All first/last trips, regardless of whether a rt time is entered
    • Stops where the real time arrival time does not monotonically increase
    • Stops where rt times are unavailable for fewer than a configured number of stops
  • Added flexibility in case rt / schedule feed format changes
  • Included basic documentation

Known Issues

  • Unsure of how to generate the "left merged" schedule rt stop times - currently an "inner merged" version is generated in the gtfs funnel, but the functions to generate it are not in a package. For now I just copied the functions to a separate file, but ideally these tables would be generated as part of the gtfs funnel, and I'm not entirely sure how to best handle that.
  • Need to better test imputation functions

@mrtopsyt mrtopsyt linked an issue Jun 6, 2025 that may be closed by this pull request
@mrtopsyt mrtopsyt changed the title Retrospective accessibility feeds Generate individual retrospective accessibility feeds Jun 6, 2025
1 similar comment
@mrtopsyt mrtopsyt requested a review from edasmalchi June 9, 2025 21:39
Copy link
Member

@edasmalchi edasmalchi left a comment

Choose a reason for hiding this comment

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

looks good! I added a couple lines to one notebook (note to install gtfs-lite, create output dir if necessary).

@mrtopsyt mrtopsyt requested a review from edasmalchi June 25, 2025 16:05
Copy link
Member

@edasmalchi edasmalchi left a comment

Choose a reason for hiding this comment

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

looks great!

@mrtopsyt mrtopsyt merged commit f463ee9 into main Jun 30, 2025
2 checks passed
@mrtopsyt mrtopsyt deleted the retrospective-accessibility-feeds branch June 30, 2025 20:40
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 Task - Update Schedule Feeds for Retrospective Accessibility
2 participants