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
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -213,3 +213,45 @@ Primary Key: `*`
213
213
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.
214
214
215
215
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.
216
+
217
+
### `vehicle_assignments.txt`
218
+
219
+
Primary Key: `*`
220
+
221
+
| Field Name | Type | Required | Description |
222
+
|---|---|---|---|
223
+
|`date`| Date | Required ||
224
+
|`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. |
225
+
|`block_id`| ID referencing `trips.block_id`| Conditionally required | Identifies the block. Either `trip_id` or `block_id` must be specified. |
226
+
|`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. |
227
+
|`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. |
228
+
|`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. |
229
+
230
+
Not every trip or block and date combo needs to have a vehicle specified.
231
+
232
+
### `vehicle_categories.txt`
233
+
234
+
Primary Key: `vehicle_category_id`
235
+
236
+
| Field Name | Type | Required | Description |
237
+
|---|---|---|---|
238
+
|`vehicle_category_id`| ID, primary key | Required | Defines an ID for a vehicle category. |
239
+
|`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. |
|`wheelchair_accessible`| Enum | Optional | Wheelchair accessible. <br />0 or empty - no <br />1 - yes |
242
+
|`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. |
243
+
|`max_capacity`| Non-negative Integer | Optional | This number denotes the maximum number of riders that the vehicle can carry. |
244
+
|`wheelchair_capacity`| Non-negative Integer | Optional | This number denotes the maximum number of riders in a wheelchair that the vehicle can carry. |
245
+
246
+
### `vehicles.txt`
247
+
248
+
Primary Key: `vehicle_id`
249
+
250
+
| Field Name | Type | Required | Description |
251
+
|---|---|---|---|
252
+
|`vehicle_id`| ID, primary key | Required | Defines an ID for a vehicle. |
253
+
|`vehicle_ category_id`| ID referencing `vehicle_categories.vehicle_category_id`| Optional ||
254
+
|`vehicle_description`| Text | Optional ||
255
+
|`registration_date`| Date | Optional ||
256
+
|`license_plate`| Text | Optional | License number of the vehicle for identification, e.g. “E898656” |
257
+
|`owner`| Text | Optional | Registered owner, e.g “City of Arcata” |
0 commit comments