-
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 2 commits
4fadf35
94e3146
405e1b3
7102599
85f67e5
aee1524
f3281fe
b4c4be1
82bc797
9c6b91e
b3d2bec
593c646
9cb1e09
94ef3db
1acaf76
24a9cfc
b311056
c2d4c04
137e6bc
966ffb9
0d5aa48
8c7718f
feee1a0
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 |
---|---|---|
|
@@ -213,3 +213,45 @@ Primary Key: `*` | |
If a feed doesn't represent rosters, it can still assign employees to runs by putting every run for every date in this file. In that case, the `exception_type` column can be omitted because every row would be adding a date, which is the default when the column is blank. | ||
|
||
Each run can only be assigned to one employee on each date. Employees may be scheduled to more than one run on the same date. | ||
|
||
### `vehicle_assignments.txt` | ||
|
||
Primary Key: `*` | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
| 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 dates when the run is scheduled to take place. Required if `block_id`s are repeated between different `service_id`s. | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `block_id` | ID referencing `trips.block_id` | Conditionally required | Identifies the block. Either `trip_id` or `block_id` must be specified. | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `trip_id` | ID referencing `trips.trip_id` | Conditionally required | Either `trip_id` or `block_id` must be specified. In the case where both are supplied, `trip_id` overrides `block_id`. Note: multiple vehicles are allowed on the same block+date, but this is not recommended. | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `vehicle_id` | ID referencing `vehicles.vehicle_id` | Conditionally required | Refers to a specific vehicle in the transit fleet. Either `vehicle_id` or `vehicle_category_id` MUST be supplied. | | ||
| `vehicle_category_id` | ID referencing `vehicle_categories.vehicle_category_id` | Conditionally required | Refers to a category of vehicle in the transit fleet if there is no specific vehicle assignment. Either `vehicle_id` or `vehicle_category_id` MUST be supplied. | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Not every trip or block and date combo needs to have a vehicle specified. | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### `vehicle_categories.txt` | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Primary Key: `vehicle_category_id` | ||
|
||
| Field Name | Type | Required | Description | | ||
|---|---|---|---| | ||
| `vehicle_category_id` | ID, primary key | Required | Defines an ID for a vehicle category. | | ||
| `vehicle_category_name` | Text | Optional | The vehicle_category_name field defines the name of the vehicle category. E.g. “MR73” in Montréal, “TGV Duplex” in France or “8-car Waratah Train” in Sydney. | | ||
| `fuel_type` | Enum | Optional | 0 or empty - unknown propulsion <br />1 - Gasoline <br /> 2 - Diesel <br /> 3 - LPG auto <br /> 4 - Mixture <br /> 5 - Biodiesel <br /> 6 - Electricity <br /> 7 - Hybrid <br /> 8 - Natural Gas <br /> 9 - Other | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `wheelchair_accessible` | Enum | Optional | Wheelchair accessible. <br />0 or empty - no <br />1 - yes | | ||
| `seating_capacity` | Non-negative Integer | Optional | This number denotes the number of seats dedicated to riders, excluding folding seats. A seat is considered accommodating only one rider in a seated position. | | ||
| `max_capacity` | Non-negative Integer | Optional | This number denotes the maximum number of riders that the vehicle can carry. | | ||
| `wheelchair_capacity` | Non-negative Integer | Optional | This number denotes the maximum number of riders in a wheelchair that the vehicle can carry. | | ||
|
||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### `vehicles.txt` | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Primary Key: `vehicle_id` | ||
|
||
| Field Name | Type | Required | Description | | ||
|---|---|---|---| | ||
| `vehicle_id` | ID, primary key | Required | Defines an ID for a vehicle. | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `vehicle_ category_id` | ID referencing `vehicle_categories.vehicle_category_id` | Optional | | | ||
antrim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `vehicle_description` | Text | Optional | | | ||
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 think the description should be on the type, instead of the individual. Individuals within each type shouldn't be unique enough to require their own description, but a description field could be useful on the type. Edit: I see the type is optional, so this could be useful to give details on a vehicle that doesn't have a type. But I feel like a better approach would be to add a type for the vehicle and describe it there. Denormalizing the data into the individual vehicles is only useful if agencies have many bespoke vehicles, which seems rare. 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. Was assuming that descriptive text strings can end up being useful for edge cases we can't anticipate. 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 see this field being useful for vehicle-specific things, even more esoteric items like "Veterans-Wrapped Coach" or "Heritage Paint Scheme." |
||
| `registration_date` | Date | Optional | | | ||
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. What should be the reasoning for which fields belong in TODS?
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. @skyqrose Agree. I will remove. |
||
| `license_plate` | Text | Optional | License number of the vehicle for identification, e.g. “E898656” | | ||
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. There may need to be a |
||
| `owner` | Text | Optional | Registered owner, e.g “City of Arcata” | | ||
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. Perhaps 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. @skyqrose Yes and no. In interstate rail, it's not uncommon for various identical pieces of equipment to be owned by different operators (e.g. 4/120 SEPTA SLV cars are owned by the State of Delaware, but are otherwise identical and interchangeable with the rest of the fleet; MNR's M8s are owned in a mix between MNR and ConnDOT, but the cars are likewise identical). From a planning perspective, we wouldn't necessarily care whose car was operated, just that one of those cars was operated along the trip. |
Uh oh!
There was an error while loading. Please reload this page.