-
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
frequencies.txt exact_times=1 trip_id semantics #227
Comments
On Saturday, June 6, 2020 8:05:27 PM CEST, Jannis Redmann wrote:
Is my understanding of the semantics correct? If it is, I'd
argue that this is quite unintuitive and therefore easy to
implement in a wrong way. If I misunderstood how
`frequencies.txt` works, let's improve the documentation.
Could you give an example how it could be interpreted in a wrong way?
|
Let's consider an excerpt from the example feed linked in the spec:
If I assume that all |
It is not one run (or block). It is a normalisation form of transit data. Including a confidence interval of the arrival time of the next trip. Remaining in the vehicle for no particular reason is an activity that is probably allowed if you would have a day ticket, but that is not what this structure (or GTFS) explicitly defines. |
(Not sure what exactly you mean by "run" here, but I will assume you mean what I tried to explain.) In the GTFS ecosystem, I have often observed the assumption that one GTFS Making that assumption would probably lead to routing errors (e.g. routes that I actually can't take or that are physically impossible) & unintuitive UIs (e.g. showing the first stop of the trip between other later stops, because another "run" in a time frame of compressed data has started). If this assumption is not to be made, meaning the (All of this does of course not apply anyways to different schemes of sending vehicles around, like circle-based lines or lines split up by direction.) |
GTFS Best Practices offer the below.
So, that means the following example is valid, and indicates a continuous loop where passengers can stay onboard at stop_times.txt
trips.txt
frequencies.txt
Notes
|
Note there is another open proposal to better define in-seat transfers and transfer rules at #32. |
Okay, thanks for clarification. In this case, I advocate to state clearly in the documentation that one |
@derhuerst : I see what you mean. Perhaps a future modification to the spec or training materials could clarify this. GTFS was created originally with passenger-facing applications in mind, so a "trip" refers to when a vehicle operates on a route. In passenger-facing information, that usually looks like a row on a timetable. Operational schedules have runs, which would usually consist of multiple "trips" in the passenger-centric sense of GTFS. Some (non-standard) GTFS datasets do include information on "runs" as you're thinking of them. Discussion in issue #195. Here is an example runcut.txt file: https://openmobilitydata.org/p/ventura-county-transportation-commission/792/latest/file/runcut.txt |
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. |
Keep open. |
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. |
I'm currently looking at creating a frequencies.txt file for a rail operation. Having the main reference point as trip_id really threw me for a loop as that is not what I had expected to see there. After looking at this for a while, I determined that it uses a trip_id to pull the required data which I believe is route, stop sequence, and the running time. I think this should be clarified as it would save a lot of trial and error for other users. |
@huntrob consider this trip_id some kind of hash result using the same stop sequence, times between them and calendar. Then this template can be instantiated at different times. |
I have a question about the semantics of
frequencies.txt
withexact_times=1
.From my experience with GTFS and my observations of GTFS-based UIs, a lot of tools seem to make the following assumption:
A single trip (as defined by a unique
trip_id
in the GTFS dataset) is one vehicle (or group of vehicles) that I can use without significant interruptions (such as waiting for another vehicle or chasing to a different line). Often, a single trip is considered to be a vehicle which I can travel with for the whole duration of thetrip
.The
frequencies.txt
documentation seems to undermine that assumption however:I think this is especially important for routing engines: Now, they can't assume anymore that every GTFS data point referring to the same
trip_id
is tied to one vehicle allowing continuous travel. There are >=1 "runs" of a vehicle, all under the sametrip_id
, but each of them ends at the last stop specified instop_times.txt
.Is my understanding of the semantics correct? If it is, I'd argue that this is quite unintuitive and therefore easy to implement in a wrong way. If I misunderstood how
frequencies.txt
works, let's improve the documentation.The text was updated successfully, but these errors were encountered: