You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec/index.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ There are two types of files used in the TODS standard:
12
12
-**Supplement files**, used to add, modify, and delete information from public GTFS files to model the operational service for internal purposes (with a `_supplement` filename suffix).
13
13
-**TODS-Specific files**, used to model operational elements not currently defined in the GTFS standard.
14
14
15
+
All files are optional.
16
+
15
17
### Files
16
18
17
19
|**File Name**|**Type**|**Description**|
@@ -21,6 +23,7 @@ There are two types of files used in the TODS standard:
21
23
| stop_times_supplement.txt | Supplement | Supplements and modifies GTFS [stop_times.txt](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stop_timestxt) with non-public times at which trips stop at locations, `stop_times` entries for non-public trips, and related information. |
22
24
| routes_supplement.txt | Supplement | Supplements and modifies GTFS [routes.txt](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#routestxt) with internal route identifiers and other non-public route identification. |
23
25
| run_events.txt | TODS-Specific | Lists all trips and other scheduled activities to be performed by a member of personnel during a run. |
26
+
| employee_run_dates.txt | TODS-Specific | Assigns employees to runs. |
24
27
25
28
_The use of the Supplement standard to modify other GTFS files is not yet formally adopted into the specification and remains subject to change. Other files may be formally adopted in the future._
26
29
@@ -133,9 +136,30 @@ Events that don't have `trip_id` set may overlap in time with any other events.
133
136
134
137
Because some events may overlap in time, it may not be possible to choose a single order for events within a run that's correct for all uses. Producers should use `event_sequence` to define a reasonable order. If a consumer cares about exactly how overlapping events are ordered, they should sort based on the time fields and `event_type` instead.
135
138
139
+
#### Run ID Uniqueness
140
+
141
+
Run IDs may be non-unique. E.g. E.g. there may be a "Run 100" on both Weekday and Weekend service. There may even be a Run 100 on both `garage1-weekday` and `garage2-weekday` services, happening on the same day. Runs are uniquely referred to by a `(service_id, run_id)` pair. This is why the service ID is required on this file and other files that refer to run IDs.
142
+
136
143
#### `run_events` Notes
137
144
138
145
- Multiple `run_event`s may refer to the same `trip_id`, if multiple employees work on that trip.
139
146
- Events may have gaps between the end time of one event and the start time of the next. e.g. if an operator's layovers aren't represented by an event.
140
147
-`start_time` may equal `end_time` for an event that's a single point in time (such as a report time) without any duration.
Describes which employees are scheduled to which runs on which dates.
153
+
154
+
This file should represent the schedule after holidays, vacations, and other scheduled exceptions have been applied.
155
+
156
+
Each run and date combination may appear 0 times in this file (if there's no assigned employee), 1 time, or multiple times (if multiple employees are assigned to the same run on the same date).
|`service_id`| ID referencing [`run_events.txt`](#run_eventstxt)| Required | Part of the Run ID, which is refered to as `(service_id, run_id)`. See [Run ID Uniqueness](#run-id-uniqueness). |
164
+
|`run_id`| ID referencing [`run_events.txt`](#run_eventstxt)| Required | The run that's added to this employee's schedule. |
165
+
|`employee_id`| ID | Required | References an agency's external systems. Employee IDs are not used elsewhere in TODS. |
0 commit comments