-
Notifications
You must be signed in to change notification settings - Fork 8
Vehicle assignments #85
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
base: main
Are you sure you want to change the base?
Changes from all commits
8291088
f393e84
4fadf35
94e3146
405e1b3
7102599
85f67e5
aee1524
f3281fe
b4c4be1
82bc797
9c6b91e
b3d2bec
593c646
9cb1e09
94ef3db
1acaf76
24a9cfc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,30 @@ Because some events may overlap in time, it may not be possible to choose a sing | |
- 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. | ||
- `start_time` may equal `end_time` for an event that's a single point in time (such as a report time) without any duration. | ||
- Recommended sort order: `service_id`, `run_id`, `event_sequence`. | ||
|
||
### `vehicle_assignments.txt` | ||
|
||
Primary Key: `(date, block_id, service_id)` | ||
|
||
| Field Name | Type | Required | Description | | ||
|---|---|---|---| | ||
| `date` | Date | Required | | | ||
| `service_id` | ID referencing `calendar.service_id` or `calendar_dates.service_id` | Optional | Identifies a set of *service days* when the trip is scheduled to take place. Note the [https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#term-definitions](GTFS definition) of *service day* is invoked here. Required if `block_id`s are repeated between different `service_id`s. | | ||
| `block_id` | ID referencing `trips.block_id` | Required | Identifies the block. | | ||
| `vehicle_id` | ID referencing `vehicles.vehicle_id` | Required | Refers to a specific vehicle in the transit fleet. | | ||
|
||
Not every block and date combo needs to have a vehicle specified. | ||
|
||
*Note for future-compatibility:* `vehicle_id` field may change to conditionally required in a future version where assignments may be made to either an individual vehicle OR a grouping of vehicles. See [GTFS-Vehicles](http://bit.ly/gtfs-vehicles) for how vehicle categories (types) might be incorporated. | ||
|
||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### `vehicles.txt` | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a link to this file in the |
||
|
||
Primary Key: `vehicle_id` | ||
|
||
| Field Name | Type | Required | Description | | ||
|---|---|---|---| | ||
| `vehicle_id` | ID, primary key | Required | Defines an ID for a vehicle. It is *recommended* but not required to match the `vehicle_id` in GTFS-realtime feeds. | | ||
| `vehicle_label` | Text | Optional | Free text label for a vehicle, e.g. bus number or vessel name. | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question: should this be recommended to match the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not very familiar with GTFS-RT, but it sounds logical to add this hint. Would it have a direct benefit to recommend this explicitly? The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For MBTA, it's unlikely that a The label field will continue to match individual cars within a consist. Updating the text would also match with the text below about |
||
| `license_plate` | Text | Optional | License number or global identifier for the vehicle, e.g. “E898656”. The field name was chosen to align with the `license_plate` field in GTFS-Realtime. It may specify a different global identifier, particularly for non-road vehicle types without license plates, e.g. Maritime Mobile Service Identity (MMSI) for ferries. | | ||
|
||
*Note for future-compatibility:* Future TODS versions may support vehicle couplings: specifically, train cars (individual vehicles) that comprise a train set. Such a proposal is described by the [GTFS-VehicleCouplings draft extension](http://bit.ly/gtfs-vehicles). | ||
safrazier17 marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Please add an entry to this file in the
Files
section of this document.