Clarify spec: Add definitions to Cause and Effect values and clarify Trip Update precedence for consumer routing decisions#78
Draft
skalexch wants to merge 4 commits into
Draft
Conversation
|
@skalexch I just noticed there are some similar cause/effect contents in the https://github.com/google/transit/blob/master/gtfs-realtime/spec/en/service-alerts.md. Could you also check if there is need to adjust anything on that page? |
eb57445 to
a547a6a
Compare
Author
|
@tzujenchanmbd I added the definitions. Now they exist both in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MobilityData is currently developing Service Alerts guidance to help the community use Service Alerts more consistently. As part of this work, we are gathering feedback through the Service Alerts Working Group meeting.
In the Apr 28th, 2026 meeting, we presented and discussed detailed definitions of values for the Cause and Effect fields, drafted here, to make sure that producers are attributing the correct values to real-world cases.
In addition, we discussed how consumers should interpret cases where both Trip Updates and Service Alerts apply but provide conflicting information. The group reached consensus that consumers should by default give precedence to Trip Updates for routing decisions.
Proposed Solution
This PR
Adds a clarification to
feed-entities.mddescribing the expected consumer behaviour when Trip Updates and Service Alerts both apply.While this clarification will also be included in the Service Alerts guidance, we believe it is appropriate to include it directly in the specification as well, in order to make this shared expectation clearer.
Details the definitions for values of Cause and Effect, to make sure that service alerts are correctly categorized.
These changes are intended to clarify definitions and to clarify a principle for expected consumer behaviour, and they do not introduce a new field or functional change. Therefore, I propose that it can proceed to a vote without requiring implementation testing.
Type of change
GTFS Schedule
GTFS Realtime
Additional information
Here is the working group meeting notes
We also plan to add an additional Service Alerts meeting in July to continue discussing guidance around Service Alert usage. Registration page