-
Notifications
You must be signed in to change notification settings - Fork 174
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
Inconsistency documentation https://developers.google.com/transit/gtfs-realtime/guides/vehicle-positions#vehiclestopstatus #291
Comments
IMHO this is another example of the confusion that results when we have multiple GTFS specs online, specifically the developers.google.com page, which for some reason doesn't always mirror the canonical spec reference on GitHub. Here's the canonical spec and .proto reference on GitHub:
For
...and the canonical .proto file says:
So these align and are the canonical definitions (although for clarity they really should be word-for-word identical). For
For this question:
...my interpretation of the above canonical spec is yes, Specifically, this should be the sequence of the vehicle going from stops 2 to 3 if you're providing both fields:
If you're not providing @sven4all Does that make sense to you? Anyone else agree or disagree? |
In fairness I think the content at https://developers.google.com/transit/gtfs-realtime/guides/vehicle-positions#vehiclestopstatus is being pulled from this repo at: https://github.com/google/transit/blob/master/gtfs-realtime/spec/en/vehicle-positions.md IMO the google/transit repo should always be the source of truth for canonical information. In this case there is actually inconsistent documentation within the repo itself. |
@barbeau for me it's the most important that we agree on one approach which one doesn't really matter to me. Mixing the words previous and next in canonical spec and .proto spec is causing the confusion. Also the order of the VehicleStopStatus ENUM is causing confusion because IN_TRANSIT_TO -> INCOMING_AT -> STOPPED_AT is the logical order in your interpetation. |
Ah, good point, I stand corrected.
Yes, agreed, and it looks like this particular issue is that we have the 3 vehicle-positions, trip-updates, and service-alerts markdown files, which are more of a narrative definition, in addition to the main reference.md file that actually enumerates all the fields. I know we've talked about combining these in the past because of these potential inconsistencies, and this is definitely another piece of evidence in favor of that approach. |
For now I propose we make the narrative guide definitions for VehicleStopStatus consistent with the definitions in the spec and .proto file. Are these descriptions suitable?
|
Close, but to be consistent with my interpretation in #291 (comment) the last one should be something like:
|
Ah right. How about:
Should the descriptions in the spec and proto be clarified along these lines as well? |
Either could work - as long as others think it's clear that "has departed" refers to the stop prior to the referenced stop without explicitly saying that.
Yes, IMHO all 3 docs should match identically. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. Issues can always be reopened after they have been closed. |
The documentation in https://developers.google.com/transit/gtfs-realtime/guides/vehicle-positions#vehiclestopstatus is not consistent with the documentation in the .proto files https://developers.google.com/transit/gtfs-realtime/gtfs-realtime-proto and gtfs.org
On https://developers.google.com/transit/gtfs-realtime/guides/vehicle-positions#vehiclestopstatus IN_TRANSIT_TO is described as "the referenced stop is the next stop for the vehicle - default" while in the .proto file it's described the following:
current_stop_sequence is described:
What is the correct way to interpreted it? Should the current_stop_sequence be updated directly after the bus is departed from the previous stop (what https://developers.google.com/transit/gtfs-realtime/guides/vehicle-positions#vehiclestopstatus IN_TRANSIT_TO suggests) or should it be updated when the vehicle arrives at the next stop what the .proto file and gtfs.org are suggesting.
The text was updated successfully, but these errors were encountered: