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

Improve E045 - allow stop_sequence/stop_id mismatch if stop_id belongs to same station #73

Open
isabelle-dr opened this issue Jan 9, 2022 · 0 comments
Labels
enhancement imported your-first-pr Issues that are a good place to start contributing to the project
Milestone

Comments

@isabelle-dr
Copy link

Issue by barbeau
Feb 14, 2020
Originally opened as CUTR-at-USF#368


Summary:

As discussed in #51 - currently there is an undocumented use case for GTFS-RT where some consumers support real-time platform re-assignment by changing the stop_id in the TripUpdate. Some producers such as MBTA are producing this type of data.

Currently, E045 flags any case where the stop_id and stop_sequence do not match GTFS:
https://github.com/CUTR-at-USF/gtfs-realtime-validator/blob/master/RULES.md#E045

We should allow a mismatch without throwing an error if the original stop_id and the new stop_id belong to the same parent station. Otherwise, it should still be considered an error.

Steps to reproduce:

Run validator on MBTA TripUpdates feed:

Expected behavior:

Don't throw E045 on platform changes

Observed behavior:

Eo45 is thrown on platform changes

@isabelle-dr isabelle-dr added enhancement your-first-pr Issues that are a good place to start contributing to the project labels Jan 9, 2022
@isabelle-dr isabelle-dr modified the milestones: v1.1, v1.0 Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement imported your-first-pr Issues that are a good place to start contributing to the project
Projects
None yet
Development

No branches or pull requests

1 participant