-
Notifications
You must be signed in to change notification settings - Fork 183
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
Clarify implied timezone in stop_times.txt #378
Conversation
Clarify implied timezone for time values at stop_times.arrival_time & stop_times.departure_time
Removed "local time" from Field Type: Time
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
gtfs/spec/en/reference.md
Outdated
@@ -76,7 +76,7 @@ Presence conditions applicable to fields and files: | |||
- **Float** - A floating point number. | |||
- **Integer** - An integer. | |||
- **Phone number** - A phone number. | |||
- **Time** - Time in the HH:MM:SS format (H:MM:SS is also accepted). The time is measured from "noon minus 12h" of the service day (effectively midnight except for days on which daylight savings time changes occur). For times occurring after midnight, enter the time as a value greater than 24:00:00 in HH:MM:SS local time for the day on which the trip schedule begins. <br> *Example: `14:30:00` for 2:30PM or `25:35:00` for 1:35AM on the next day.* | |||
- **Time** - Time in the HH:MM:SS format (H:MM:SS is also accepted). The time is measured from "noon minus 12h" of the service day (effectively midnight except for days on which daylight savings time changes occur). For times occurring after midnight, enter the time as a value greater than 24:00:00 in HH:MM:SS for the day on which the trip schedule begins. <br> *Example: `14:30:00` for 2:30PM or `25:35:00` for 1:35AM on the next day.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we're already changing this definition, I propose another related change:
I'd argue that the "for the day on which the trip schedule begins" part confuses more than it helps. I think we should either a) state (again here as before) that the time is relative to the service day, or b) don't add any alternative phrase as a GTFS "Time" is always relative to the service day.
Same below in the {arrival,departure}_time
definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@derhuerst what about the following definition?
Time - Time in the HH:MM:SS format (H:MM:SS is also accepted). The time is measured from "noon minus 12h" of the service day (effectively midnight except for days on which daylight savings time changes occur). For times occurring after midnight on the service day
, enter the time as a value greater than 24:00:00 in HH:MM:SS. [remove "for the day on which the trip schedule begins"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
This pull request 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. |
I think this is a good change and would welcome further discussion and an eventual merge. |
comment from derhuerst - google#378 (comment)
It looks like the proposal does not raise other concerns. I’m opening a vote on this PR. This vote is for modifying description in Please vote with a +1 (for) or -1 (against) in the comments. Voting ends on 2023-07-31 at 23:59:59 UTC. |
+1 Transit |
+1 OpenTripPlanner |
I would want to make it even more explicit by adding ", not the stop.timezone". |
Add "not stops.stop_timezone" for both departure_time and arrival_time
+1 |
+1 TransSee |
+1 Trillium |
+1 enRoute |
The vote passed on 2023-07-31 at 23:59:59 UTC. 6 votes in favour and no votes against. The votes came from: Thanks to everyone who contributed and voted! (Special thanks to @e-lo for bringing up the issue in 2022!) |
* arri/dept time updates Clarify implied timezone for time values at stop_times.arrival_time & stop_times.departure_time * Removed "local time" Removed "local time" from Field Type: Time * Remove "for the day on which the trip schedule begins" comment from derhuerst - google#378 (comment) * Add "not stops.stop_timezone" Add "not stops.stop_timezone" for both departure_time and arrival_time
The purpose of this PR is:
stop_times.arrival_time
andstop_times.departure_time
Current definition on
stop_times.arrival_time
:Problem (quoted from Elizabeth in #322):
The above definition, with use of the word "local" implies that
stop_times.txt
should use the time zone of the local stop. However, thestop.stop_timezone
definition clearly states that if used, thatstop_times
should refer toagency.agency_timezone
.This problem caused Amtrak to provide incorrect data in 2022.
Proposed solution:
Clarify definition of
time
,stop_times.arrival_time
, andstop_times.departure_time
Fixes issue#322 (see issue#322 for previous discussion)