gtfs 4.18.0 → 4.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/dist/bin/gtfs-export.js +18 -0
- package/dist/bin/gtfs-export.js.map +1 -1
- package/dist/bin/gtfs-import.js +18 -0
- package/dist/bin/gtfs-import.js.map +1 -1
- package/dist/bin/gtfsrealtime-update.js.map +1 -1
- package/dist/index.d.ts +297 -288
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/dist/models/models.d.ts +19 -0
- package/dist/models/models.js +18 -0
- package/dist/models/models.js.map +1 -1
- package/package.json +14 -15
package/dist/index.d.ts
CHANGED
|
@@ -167,50 +167,51 @@ interface QueryOptions {
|
|
|
167
167
|
bounding_box_side_m?: number;
|
|
168
168
|
}
|
|
169
169
|
interface Agency {
|
|
170
|
-
agency_id
|
|
170
|
+
agency_id: string | null;
|
|
171
171
|
agency_name: string;
|
|
172
172
|
agency_url: string;
|
|
173
173
|
agency_timezone: string;
|
|
174
|
-
agency_lang
|
|
175
|
-
agency_phone
|
|
176
|
-
agency_fare_url
|
|
177
|
-
agency_email
|
|
174
|
+
agency_lang: string | null;
|
|
175
|
+
agency_phone: string | null;
|
|
176
|
+
agency_fare_url: string | null;
|
|
177
|
+
agency_email: string | null;
|
|
178
|
+
cemv_support: 0 | 1 | 2 | null;
|
|
178
179
|
}
|
|
179
180
|
interface Area {
|
|
180
181
|
area_id: string;
|
|
181
|
-
area_name
|
|
182
|
+
area_name: string | null;
|
|
182
183
|
}
|
|
183
184
|
interface Attribution {
|
|
184
|
-
attribution_id
|
|
185
|
-
agency_id
|
|
186
|
-
route_id
|
|
187
|
-
trip_id
|
|
185
|
+
attribution_id: string | null;
|
|
186
|
+
agency_id: string | null;
|
|
187
|
+
route_id: string | null;
|
|
188
|
+
trip_id: string | null;
|
|
188
189
|
organization_name: string;
|
|
189
|
-
is_producer
|
|
190
|
-
is_operator
|
|
191
|
-
is_authority
|
|
192
|
-
attribution_url
|
|
193
|
-
attribution_email
|
|
194
|
-
attribution_phone
|
|
190
|
+
is_producer: 0 | 1 | null;
|
|
191
|
+
is_operator: 0 | 1 | null;
|
|
192
|
+
is_authority: 0 | 1 | null;
|
|
193
|
+
attribution_url: string | null;
|
|
194
|
+
attribution_email: string | null;
|
|
195
|
+
attribution_phone: string | null;
|
|
195
196
|
}
|
|
196
197
|
interface BookingRule {
|
|
197
198
|
booking_rule_id: string;
|
|
198
199
|
booking_type: 0 | 1 | 2;
|
|
199
|
-
prior_notice_duration_min
|
|
200
|
-
prior_notice_duration_max
|
|
201
|
-
prior_notice_last_day
|
|
202
|
-
prior_notice_last_time
|
|
203
|
-
prior_notice_last_timestamp
|
|
204
|
-
prior_notice_start_day
|
|
205
|
-
prior_notice_start_time
|
|
206
|
-
prior_notice_start_timestamp
|
|
207
|
-
prior_notice_service_id
|
|
208
|
-
message
|
|
209
|
-
pickup_message
|
|
210
|
-
drop_off_message
|
|
211
|
-
phone_number
|
|
212
|
-
info_url
|
|
213
|
-
booking_url
|
|
200
|
+
prior_notice_duration_min: number | null;
|
|
201
|
+
prior_notice_duration_max: number | null;
|
|
202
|
+
prior_notice_last_day: number | null;
|
|
203
|
+
prior_notice_last_time: string | null;
|
|
204
|
+
prior_notice_last_timestamp: UnixTimestamp | null;
|
|
205
|
+
prior_notice_start_day: number | null;
|
|
206
|
+
prior_notice_start_time: string | null;
|
|
207
|
+
prior_notice_start_timestamp: UnixTimestamp | null;
|
|
208
|
+
prior_notice_service_id: string | null;
|
|
209
|
+
message: string | null;
|
|
210
|
+
pickup_message: string | null;
|
|
211
|
+
drop_off_message: string | null;
|
|
212
|
+
phone_number: string | null;
|
|
213
|
+
info_url: string | null;
|
|
214
|
+
booking_url: string | null;
|
|
214
215
|
}
|
|
215
216
|
interface Calendar {
|
|
216
217
|
service_id: string;
|
|
@@ -228,7 +229,7 @@ interface CalendarDate {
|
|
|
228
229
|
service_id: string;
|
|
229
230
|
date: number;
|
|
230
231
|
exception_type: 1 | 2;
|
|
231
|
-
holiday_name
|
|
232
|
+
holiday_name: string | null;
|
|
232
233
|
}
|
|
233
234
|
interface FareAttribute {
|
|
234
235
|
fare_id: string;
|
|
@@ -236,57 +237,57 @@ interface FareAttribute {
|
|
|
236
237
|
currency_type: string;
|
|
237
238
|
payment_method: 0 | 1;
|
|
238
239
|
transfers: 0 | 1 | 2;
|
|
239
|
-
agency_id
|
|
240
|
-
transfer_duration
|
|
240
|
+
agency_id: string | null;
|
|
241
|
+
transfer_duration: number | null;
|
|
241
242
|
}
|
|
242
243
|
interface FareLegRule {
|
|
243
|
-
leg_group_id
|
|
244
|
-
network_id
|
|
245
|
-
from_area_id
|
|
246
|
-
to_area_id
|
|
247
|
-
from_timeframe_group_id
|
|
248
|
-
to_timeframe_group_id
|
|
244
|
+
leg_group_id: string | null;
|
|
245
|
+
network_id: string | null;
|
|
246
|
+
from_area_id: string | null;
|
|
247
|
+
to_area_id: string | null;
|
|
248
|
+
from_timeframe_group_id: string | null;
|
|
249
|
+
to_timeframe_group_id: string | null;
|
|
249
250
|
fare_product_id: string;
|
|
250
|
-
rule_priority
|
|
251
|
+
rule_priority: number | null;
|
|
251
252
|
}
|
|
252
253
|
interface FareMedia {
|
|
253
254
|
fare_media_id: string;
|
|
254
|
-
fare_media_name
|
|
255
|
+
fare_media_name: string | null;
|
|
255
256
|
fare_media_type: 0 | 1 | 2 | 3 | 4;
|
|
256
257
|
}
|
|
257
258
|
interface FareProduct {
|
|
258
259
|
fare_product_id: string;
|
|
259
|
-
fare_product_name
|
|
260
|
-
fare_media_id
|
|
260
|
+
fare_product_name: string | null;
|
|
261
|
+
fare_media_id: string | null;
|
|
261
262
|
amount: number;
|
|
262
263
|
currency: string;
|
|
263
264
|
}
|
|
264
265
|
interface FareRule {
|
|
265
266
|
fare_id: string;
|
|
266
|
-
route_id
|
|
267
|
-
origin_id
|
|
268
|
-
destination_id
|
|
269
|
-
contains_id
|
|
267
|
+
route_id: string | null;
|
|
268
|
+
origin_id: string | null;
|
|
269
|
+
destination_id: string | null;
|
|
270
|
+
contains_id: string | null;
|
|
270
271
|
}
|
|
271
272
|
interface FareTransferRule {
|
|
272
|
-
from_leg_group_id
|
|
273
|
-
to_leg_group_id
|
|
274
|
-
transfer_count
|
|
273
|
+
from_leg_group_id: string | null;
|
|
274
|
+
to_leg_group_id: string | null;
|
|
275
|
+
transfer_count: number | null;
|
|
275
276
|
duration_limit: number;
|
|
276
|
-
duration_limit_type
|
|
277
|
+
duration_limit_type: 0 | 1 | 2 | 3 | null;
|
|
277
278
|
fare_transfer_type: 0 | 1 | 2;
|
|
278
|
-
fare_product_id
|
|
279
|
+
fare_product_id: string | null;
|
|
279
280
|
}
|
|
280
281
|
interface FeedInfo {
|
|
281
282
|
feed_publisher_name: string;
|
|
282
283
|
feed_publisher_url: string;
|
|
283
284
|
feed_lang: string;
|
|
284
|
-
default_lang
|
|
285
|
-
feed_start_date
|
|
286
|
-
feed_end_date
|
|
287
|
-
feed_version
|
|
288
|
-
feed_contact_email
|
|
289
|
-
feed_contact_url
|
|
285
|
+
default_lang: string | null;
|
|
286
|
+
feed_start_date: number | null;
|
|
287
|
+
feed_end_date: number | null;
|
|
288
|
+
feed_version: string | null;
|
|
289
|
+
feed_contact_email: string | null;
|
|
290
|
+
feed_contact_url: string | null;
|
|
290
291
|
}
|
|
291
292
|
interface Frequency {
|
|
292
293
|
trip_id: string;
|
|
@@ -295,12 +296,12 @@ interface Frequency {
|
|
|
295
296
|
end_time: string;
|
|
296
297
|
end_timestamp: UnixTimestamp;
|
|
297
298
|
headway_secs: number;
|
|
298
|
-
exact_times
|
|
299
|
+
exact_times: 0 | 1 | null;
|
|
299
300
|
}
|
|
300
301
|
interface Level {
|
|
301
302
|
level_id: string;
|
|
302
303
|
level_index: number;
|
|
303
|
-
level_name
|
|
304
|
+
level_name: string | null;
|
|
304
305
|
}
|
|
305
306
|
interface LocationGroupStop {
|
|
306
307
|
location_group_id: string;
|
|
@@ -308,14 +309,14 @@ interface LocationGroupStop {
|
|
|
308
309
|
}
|
|
309
310
|
interface LocationGroup {
|
|
310
311
|
location_group_id: string;
|
|
311
|
-
location_group_name
|
|
312
|
+
location_group_name: string | null;
|
|
312
313
|
}
|
|
313
314
|
interface Location {
|
|
314
315
|
geojson: string;
|
|
315
316
|
}
|
|
316
317
|
interface Network {
|
|
317
318
|
network_id: string;
|
|
318
|
-
network_name
|
|
319
|
+
network_name: string | null;
|
|
319
320
|
}
|
|
320
321
|
interface Pathway {
|
|
321
322
|
pathway_id: string;
|
|
@@ -323,13 +324,13 @@ interface Pathway {
|
|
|
323
324
|
to_stop_id: string;
|
|
324
325
|
pathway_mode: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
325
326
|
is_bidirectional: 0 | 1;
|
|
326
|
-
length
|
|
327
|
-
traversal_time
|
|
328
|
-
stair_count
|
|
329
|
-
max_slope
|
|
330
|
-
min_width
|
|
331
|
-
signposted_as
|
|
332
|
-
reversed_signposted_as
|
|
327
|
+
length: number | null;
|
|
328
|
+
traversal_time: number | null;
|
|
329
|
+
stair_count: number | null;
|
|
330
|
+
max_slope: number | null;
|
|
331
|
+
min_width: number | null;
|
|
332
|
+
signposted_as: string | null;
|
|
333
|
+
reversed_signposted_as: string | null;
|
|
333
334
|
}
|
|
334
335
|
interface RouteNetwork {
|
|
335
336
|
network_id: string;
|
|
@@ -337,25 +338,26 @@ interface RouteNetwork {
|
|
|
337
338
|
}
|
|
338
339
|
interface Route {
|
|
339
340
|
route_id: string;
|
|
340
|
-
agency_id
|
|
341
|
-
route_short_name
|
|
342
|
-
route_long_name
|
|
343
|
-
route_desc
|
|
341
|
+
agency_id: string | null;
|
|
342
|
+
route_short_name: string | null;
|
|
343
|
+
route_long_name: string | null;
|
|
344
|
+
route_desc: string | null;
|
|
344
345
|
route_type: number;
|
|
345
|
-
route_url
|
|
346
|
-
route_color
|
|
347
|
-
route_text_color
|
|
348
|
-
route_sort_order
|
|
349
|
-
continuous_pickup
|
|
350
|
-
continuous_drop_off
|
|
351
|
-
network_id
|
|
346
|
+
route_url: string | null;
|
|
347
|
+
route_color: string | null;
|
|
348
|
+
route_text_color: string | null;
|
|
349
|
+
route_sort_order: number | null;
|
|
350
|
+
continuous_pickup: 0 | 1 | 2 | 3 | null;
|
|
351
|
+
continuous_drop_off: 0 | 1 | 2 | 3 | null;
|
|
352
|
+
network_id: string | null;
|
|
353
|
+
cemv_support: 0 | 1 | 2 | null;
|
|
352
354
|
}
|
|
353
355
|
interface Shape {
|
|
354
356
|
shape_id: string;
|
|
355
357
|
shape_pt_lat: number;
|
|
356
358
|
shape_pt_lon: number;
|
|
357
359
|
shape_pt_sequence: number;
|
|
358
|
-
shape_dist_traveled
|
|
360
|
+
shape_dist_traveled: number | null;
|
|
359
361
|
}
|
|
360
362
|
interface StopArea {
|
|
361
363
|
area_id: string;
|
|
@@ -363,87 +365,88 @@ interface StopArea {
|
|
|
363
365
|
}
|
|
364
366
|
interface StopTime {
|
|
365
367
|
trip_id: string;
|
|
366
|
-
arrival_time
|
|
367
|
-
arrival_timestamp
|
|
368
|
-
departure_time
|
|
369
|
-
departure_timestamp
|
|
370
|
-
location_group_id
|
|
371
|
-
location_id
|
|
372
|
-
stop_id
|
|
368
|
+
arrival_time: string | null;
|
|
369
|
+
arrival_timestamp: UnixTimestamp | null;
|
|
370
|
+
departure_time: string | null;
|
|
371
|
+
departure_timestamp: UnixTimestamp | null;
|
|
372
|
+
location_group_id: string | null;
|
|
373
|
+
location_id: string | null;
|
|
374
|
+
stop_id: string | null;
|
|
373
375
|
stop_sequence: number;
|
|
374
|
-
stop_headsign
|
|
375
|
-
start_pickup_drop_off_window
|
|
376
|
-
start_pickup_drop_off_window_timestamp
|
|
377
|
-
pickup_type
|
|
378
|
-
drop_off_type
|
|
379
|
-
continuous_pickup
|
|
380
|
-
continuous_drop_off
|
|
381
|
-
shape_dist_traveled
|
|
382
|
-
timepoint
|
|
383
|
-
pickup_booking_rule_id
|
|
384
|
-
drop_off_booking_rule_id
|
|
376
|
+
stop_headsign: string | null;
|
|
377
|
+
start_pickup_drop_off_window: string | null;
|
|
378
|
+
start_pickup_drop_off_window_timestamp: UnixTimestamp | null;
|
|
379
|
+
pickup_type: 0 | 1 | 2 | 3 | null;
|
|
380
|
+
drop_off_type: 0 | 1 | 2 | 3 | null;
|
|
381
|
+
continuous_pickup: 0 | 1 | 2 | 3 | null;
|
|
382
|
+
continuous_drop_off: 0 | 1 | 2 | 3 | null;
|
|
383
|
+
shape_dist_traveled: number | null;
|
|
384
|
+
timepoint: 0 | 1 | null;
|
|
385
|
+
pickup_booking_rule_id: string | null;
|
|
386
|
+
drop_off_booking_rule_id: string | null;
|
|
385
387
|
}
|
|
386
388
|
interface Stop {
|
|
387
389
|
stop_id: string;
|
|
388
|
-
stop_code
|
|
389
|
-
stop_name
|
|
390
|
-
tts_stop_name
|
|
391
|
-
stop_desc
|
|
392
|
-
stop_lat
|
|
393
|
-
stop_lon
|
|
394
|
-
zone_id
|
|
395
|
-
stop_url
|
|
396
|
-
location_type
|
|
397
|
-
parent_station
|
|
398
|
-
stop_timezone
|
|
399
|
-
wheelchair_boarding
|
|
400
|
-
level_id
|
|
401
|
-
platform_code
|
|
390
|
+
stop_code: string | null;
|
|
391
|
+
stop_name: string | null;
|
|
392
|
+
tts_stop_name: string | null;
|
|
393
|
+
stop_desc: string | null;
|
|
394
|
+
stop_lat: number | null;
|
|
395
|
+
stop_lon: number | null;
|
|
396
|
+
zone_id: string | null;
|
|
397
|
+
stop_url: string | null;
|
|
398
|
+
location_type: 0 | 1 | 2 | 3 | 4 | null;
|
|
399
|
+
parent_station: string | null;
|
|
400
|
+
stop_timezone: string | null;
|
|
401
|
+
wheelchair_boarding: 0 | 1 | 2 | null;
|
|
402
|
+
level_id: string | null;
|
|
403
|
+
platform_code: string | null;
|
|
404
|
+
stop_access: 0 | 1 | null;
|
|
402
405
|
}
|
|
403
406
|
interface Timeframe {
|
|
404
407
|
timeframe_group_id: string;
|
|
405
|
-
start_time
|
|
406
|
-
end_time
|
|
408
|
+
start_time: string | null;
|
|
409
|
+
end_time: string | null;
|
|
407
410
|
service_id: string;
|
|
408
411
|
}
|
|
409
412
|
interface Transfer {
|
|
410
|
-
from_stop_id
|
|
411
|
-
to_stop_id
|
|
412
|
-
from_route_id
|
|
413
|
-
to_route_id
|
|
414
|
-
from_trip_id
|
|
415
|
-
to_trip_id
|
|
413
|
+
from_stop_id: string | null;
|
|
414
|
+
to_stop_id: string | null;
|
|
415
|
+
from_route_id: string | null;
|
|
416
|
+
to_route_id: string | null;
|
|
417
|
+
from_trip_id: string | null;
|
|
418
|
+
to_trip_id: string | null;
|
|
416
419
|
transfer_type: 0 | 1 | 2 | 3 | 4 | 5;
|
|
417
|
-
min_transfer_time
|
|
420
|
+
min_transfer_time: number | null;
|
|
418
421
|
}
|
|
419
422
|
interface Translation {
|
|
420
423
|
table_name: string;
|
|
421
424
|
field_name: string;
|
|
422
425
|
language: string;
|
|
423
426
|
translation: string;
|
|
424
|
-
record_id
|
|
425
|
-
record_sub_id
|
|
426
|
-
field_value
|
|
427
|
+
record_id: string | null;
|
|
428
|
+
record_sub_id: string | null;
|
|
429
|
+
field_value: string | null;
|
|
427
430
|
}
|
|
428
431
|
interface Trip {
|
|
429
432
|
route_id: string;
|
|
430
433
|
service_id: string;
|
|
431
434
|
trip_id: string;
|
|
432
|
-
trip_headsign
|
|
433
|
-
trip_short_name
|
|
434
|
-
direction_id
|
|
435
|
-
block_id
|
|
436
|
-
shape_id
|
|
437
|
-
wheelchair_accessible
|
|
438
|
-
bikes_allowed
|
|
439
|
-
cars_allowed
|
|
435
|
+
trip_headsign: string | null;
|
|
436
|
+
trip_short_name: string | null;
|
|
437
|
+
direction_id: 0 | 1 | null;
|
|
438
|
+
block_id: string | null;
|
|
439
|
+
shape_id: string | null;
|
|
440
|
+
wheelchair_accessible: 0 | 1 | 2 | null;
|
|
441
|
+
bikes_allowed: 0 | 1 | 2 | null;
|
|
442
|
+
cars_allowed: 0 | 1 | 2 | null;
|
|
440
443
|
}
|
|
441
444
|
interface Timetable {
|
|
442
445
|
timetable_id: string;
|
|
443
446
|
route_id: string;
|
|
444
|
-
direction_id
|
|
445
|
-
start_date
|
|
446
|
-
end_date
|
|
447
|
+
direction_id: 0 | 1 | null;
|
|
448
|
+
start_date: number | null;
|
|
449
|
+
end_date: number | null;
|
|
447
450
|
monday: 0 | 1;
|
|
448
451
|
tuesday: 0 | 1;
|
|
449
452
|
wednesday: 0 | 1;
|
|
@@ -451,23 +454,23 @@ interface Timetable {
|
|
|
451
454
|
friday: 0 | 1;
|
|
452
455
|
saturday: 0 | 1;
|
|
453
456
|
sunday: 0 | 1;
|
|
454
|
-
start_time
|
|
455
|
-
start_timestamp
|
|
456
|
-
end_time
|
|
457
|
-
end_timestamp
|
|
458
|
-
timetable_label
|
|
459
|
-
service_notes
|
|
460
|
-
orientation
|
|
461
|
-
timetable_page_id
|
|
462
|
-
timetable_sequence
|
|
463
|
-
direction_name
|
|
464
|
-
include_exceptions
|
|
465
|
-
show_trip_continuation
|
|
457
|
+
start_time: string | null;
|
|
458
|
+
start_timestamp: UnixTimestamp | null;
|
|
459
|
+
end_time: string | null;
|
|
460
|
+
end_timestamp: UnixTimestamp | null;
|
|
461
|
+
timetable_label: string | null;
|
|
462
|
+
service_notes: string | null;
|
|
463
|
+
orientation: string | null;
|
|
464
|
+
timetable_page_id: string | null;
|
|
465
|
+
timetable_sequence: number | null;
|
|
466
|
+
direction_name: string | null;
|
|
467
|
+
include_exceptions: 0 | 1 | null;
|
|
468
|
+
show_trip_continuation: 0 | 1 | null;
|
|
466
469
|
}
|
|
467
470
|
interface TimetablePage {
|
|
468
471
|
timetable_page_id: string;
|
|
469
|
-
timetable_page_label
|
|
470
|
-
filename
|
|
472
|
+
timetable_page_label: string | null;
|
|
473
|
+
filename: string | null;
|
|
471
474
|
}
|
|
472
475
|
interface TimetableStopOrder {
|
|
473
476
|
timetable_id: string;
|
|
@@ -476,17 +479,17 @@ interface TimetableStopOrder {
|
|
|
476
479
|
}
|
|
477
480
|
interface TimetableNote {
|
|
478
481
|
note_id: string;
|
|
479
|
-
symbol
|
|
482
|
+
symbol: string | null;
|
|
480
483
|
note: string;
|
|
481
484
|
}
|
|
482
485
|
interface TimetableNotesReference {
|
|
483
486
|
note_id: string;
|
|
484
487
|
timetable_id: string;
|
|
485
|
-
route_id
|
|
486
|
-
trip_id
|
|
487
|
-
stop_id
|
|
488
|
-
stop_sequence
|
|
489
|
-
show_on_stoptime
|
|
488
|
+
route_id: string | null;
|
|
489
|
+
trip_id: string | null;
|
|
490
|
+
stop_id: string | null;
|
|
491
|
+
stop_sequence: number | null;
|
|
492
|
+
show_on_stoptime: 0 | 1 | null;
|
|
490
493
|
}
|
|
491
494
|
interface TripsDatedVehicleJourney {
|
|
492
495
|
trip_id: string;
|
|
@@ -500,26 +503,26 @@ interface DeadheadTime {
|
|
|
500
503
|
arrival_timestamp: UnixTimestamp;
|
|
501
504
|
departure_time: string;
|
|
502
505
|
departure_timestamp: UnixTimestamp;
|
|
503
|
-
ops_location_id
|
|
504
|
-
stop_id
|
|
506
|
+
ops_location_id: string | null;
|
|
507
|
+
stop_id: string | null;
|
|
505
508
|
location_sequence: number;
|
|
506
|
-
shape_dist_traveled
|
|
509
|
+
shape_dist_traveled: number | null;
|
|
507
510
|
}
|
|
508
511
|
interface Deadhead {
|
|
509
512
|
deadhead_id: string;
|
|
510
513
|
service_id: string;
|
|
511
514
|
block_id: string;
|
|
512
|
-
shape_id
|
|
513
|
-
to_trip_id
|
|
514
|
-
from_trip_id
|
|
515
|
-
to_deadhead_id
|
|
516
|
-
from_deadhead_id
|
|
515
|
+
shape_id: string | null;
|
|
516
|
+
to_trip_id: string | null;
|
|
517
|
+
from_trip_id: string | null;
|
|
518
|
+
to_deadhead_id: string | null;
|
|
519
|
+
from_deadhead_id: string | null;
|
|
517
520
|
}
|
|
518
521
|
interface OpsLocation {
|
|
519
522
|
ops_location_id: string;
|
|
520
|
-
ops_location_code
|
|
523
|
+
ops_location_code: string | null;
|
|
521
524
|
ops_location_name: string;
|
|
522
|
-
ops_location_desc
|
|
525
|
+
ops_location_desc: string | null;
|
|
523
526
|
ops_location_lat: number;
|
|
524
527
|
ops_location_lon: number;
|
|
525
528
|
}
|
|
@@ -527,80 +530,86 @@ interface RunEvent {
|
|
|
527
530
|
run_event_id: string;
|
|
528
531
|
piece_id: string;
|
|
529
532
|
event_type: number;
|
|
530
|
-
event_name
|
|
533
|
+
event_name: string | null;
|
|
531
534
|
event_time: string;
|
|
532
535
|
event_duration: number;
|
|
533
536
|
event_from_location_type: 0 | 1;
|
|
534
|
-
event_from_location_id
|
|
537
|
+
event_from_location_id: string | null;
|
|
535
538
|
event_to_location_type: 0 | 1;
|
|
536
|
-
event_to_location_id
|
|
539
|
+
event_to_location_id: string | null;
|
|
537
540
|
}
|
|
538
541
|
interface RunPiece {
|
|
539
542
|
run_id: string;
|
|
540
543
|
piece_id: string;
|
|
541
544
|
start_type: 0 | 1 | 2;
|
|
542
545
|
start_trip_id: string;
|
|
543
|
-
start_trip_position
|
|
546
|
+
start_trip_position: number | null;
|
|
544
547
|
end_type: 0 | 1 | 2;
|
|
545
548
|
end_trip_id: string;
|
|
546
|
-
end_trip_position
|
|
549
|
+
end_trip_position: number | null;
|
|
547
550
|
}
|
|
548
551
|
interface ServiceAlert {
|
|
549
|
-
|
|
552
|
+
id: string;
|
|
553
|
+
cause: string | null;
|
|
554
|
+
effect: string | null;
|
|
555
|
+
url: string | null;
|
|
550
556
|
start_time: string;
|
|
551
557
|
end_time: string;
|
|
552
|
-
|
|
553
|
-
|
|
558
|
+
header_text: string;
|
|
559
|
+
description_text: string;
|
|
560
|
+
tts_header_text: string | null;
|
|
561
|
+
tts_description_text: string | null;
|
|
562
|
+
severity_level: string | null;
|
|
554
563
|
created_timestamp: UnixTimestamp;
|
|
555
564
|
expiration_timestamp: UnixTimestamp;
|
|
556
565
|
}
|
|
557
566
|
interface StopTimeUpdate {
|
|
558
|
-
trip_id
|
|
559
|
-
trip_start_time
|
|
560
|
-
direction_id
|
|
561
|
-
route_id
|
|
562
|
-
stop_id
|
|
563
|
-
stop_sequence
|
|
564
|
-
arrival_delay
|
|
565
|
-
departure_delay
|
|
566
|
-
departure_timestamp
|
|
567
|
-
arrival_timestamp
|
|
568
|
-
schedule_relationship
|
|
567
|
+
trip_id: string | null;
|
|
568
|
+
trip_start_time: string | null;
|
|
569
|
+
direction_id: 0 | 1 | null;
|
|
570
|
+
route_id: string | null;
|
|
571
|
+
stop_id: string | null;
|
|
572
|
+
stop_sequence: number | null;
|
|
573
|
+
arrival_delay: number | null;
|
|
574
|
+
departure_delay: number | null;
|
|
575
|
+
departure_timestamp: UnixTimestamp | null;
|
|
576
|
+
arrival_timestamp: UnixTimestamp | null;
|
|
577
|
+
schedule_relationship: string | null;
|
|
569
578
|
created_timestamp: UnixTimestamp;
|
|
570
579
|
expiration_timestamp: UnixTimestamp;
|
|
571
580
|
}
|
|
572
581
|
interface TripUpdate {
|
|
573
|
-
|
|
574
|
-
vehicle_id
|
|
575
|
-
trip_id
|
|
576
|
-
trip_start_time
|
|
577
|
-
direction_id
|
|
578
|
-
route_id
|
|
579
|
-
start_date
|
|
580
|
-
timestamp
|
|
581
|
-
schedule_relationship
|
|
582
|
+
id: string;
|
|
583
|
+
vehicle_id: string | null;
|
|
584
|
+
trip_id: string | null;
|
|
585
|
+
trip_start_time: string | null;
|
|
586
|
+
direction_id: 0 | 1 | null;
|
|
587
|
+
route_id: string | null;
|
|
588
|
+
start_date: number | null;
|
|
589
|
+
timestamp: UnixTimestamp | null;
|
|
590
|
+
schedule_relationship: string | null;
|
|
582
591
|
created_timestamp: UnixTimestamp;
|
|
583
592
|
expiration_timestamp: UnixTimestamp;
|
|
584
593
|
}
|
|
585
594
|
interface VehiclePosition {
|
|
586
|
-
|
|
587
|
-
bearing
|
|
588
|
-
latitude
|
|
589
|
-
longitude
|
|
590
|
-
speed
|
|
591
|
-
current_stop_sequence
|
|
592
|
-
trip_id
|
|
593
|
-
trip_start_date
|
|
594
|
-
trip_start_time
|
|
595
|
-
congestion_level
|
|
596
|
-
occupancy_status
|
|
597
|
-
occupancy_percentage
|
|
598
|
-
vehicle_stop_status
|
|
599
|
-
vehicle_id
|
|
600
|
-
vehicle_label
|
|
601
|
-
vehicle_license_plate
|
|
602
|
-
vehicle_wheelchair_accessible
|
|
603
|
-
timestamp
|
|
595
|
+
id: string;
|
|
596
|
+
bearing: number | null;
|
|
597
|
+
latitude: number | null;
|
|
598
|
+
longitude: number | null;
|
|
599
|
+
speed: number | null;
|
|
600
|
+
current_stop_sequence: number | null;
|
|
601
|
+
trip_id: string | null;
|
|
602
|
+
trip_start_date: number | null;
|
|
603
|
+
trip_start_time: string | null;
|
|
604
|
+
congestion_level: string | null;
|
|
605
|
+
occupancy_status: string | null;
|
|
606
|
+
occupancy_percentage: number | null;
|
|
607
|
+
vehicle_stop_status: string | null;
|
|
608
|
+
vehicle_id: string | null;
|
|
609
|
+
vehicle_label: string | null;
|
|
610
|
+
vehicle_license_plate: string | null;
|
|
611
|
+
vehicle_wheelchair_accessible: number | null;
|
|
612
|
+
timestamp: UnixTimestamp | null;
|
|
604
613
|
created_timestamp: UnixTimestamp;
|
|
605
614
|
expiration_timestamp: UnixTimestamp;
|
|
606
615
|
}
|
|
@@ -609,92 +618,92 @@ interface BoardAlight {
|
|
|
609
618
|
stop_id: string;
|
|
610
619
|
stop_sequence: number;
|
|
611
620
|
record_use: 0 | 1;
|
|
612
|
-
schedule_relationship
|
|
613
|
-
boardings
|
|
614
|
-
alightings
|
|
615
|
-
current_load
|
|
616
|
-
load_count
|
|
617
|
-
load_type
|
|
618
|
-
rack_down
|
|
619
|
-
bike_boardings
|
|
620
|
-
bike_alightings
|
|
621
|
-
ramp_used
|
|
622
|
-
ramp_boardings
|
|
623
|
-
ramp_alightings
|
|
624
|
-
service_date
|
|
625
|
-
service_arrival_time
|
|
626
|
-
service_arrival_timestamp
|
|
627
|
-
service_departure_time
|
|
628
|
-
service_departure_timestamp
|
|
629
|
-
source
|
|
621
|
+
schedule_relationship: number | null;
|
|
622
|
+
boardings: number | null;
|
|
623
|
+
alightings: number | null;
|
|
624
|
+
current_load: number | null;
|
|
625
|
+
load_count: number | null;
|
|
626
|
+
load_type: number | null;
|
|
627
|
+
rack_down: number | null;
|
|
628
|
+
bike_boardings: number | null;
|
|
629
|
+
bike_alightings: number | null;
|
|
630
|
+
ramp_used: number | null;
|
|
631
|
+
ramp_boardings: number | null;
|
|
632
|
+
ramp_alightings: number | null;
|
|
633
|
+
service_date: number | null;
|
|
634
|
+
service_arrival_time: string | null;
|
|
635
|
+
service_arrival_timestamp: UnixTimestamp | null;
|
|
636
|
+
service_departure_time: string | null;
|
|
637
|
+
service_departure_timestamp: UnixTimestamp | null;
|
|
638
|
+
source: 0 | 1 | 2 | 3 | 4 | null;
|
|
630
639
|
}
|
|
631
640
|
interface RideFeedInfo {
|
|
632
641
|
ride_files: number;
|
|
633
|
-
ride_start_date
|
|
634
|
-
ride_end_date
|
|
635
|
-
gtfs_feed_date
|
|
636
|
-
default_currency_type
|
|
637
|
-
ride_feed_version
|
|
642
|
+
ride_start_date: number | null;
|
|
643
|
+
ride_end_date: number | null;
|
|
644
|
+
gtfs_feed_date: number | null;
|
|
645
|
+
default_currency_type: string | null;
|
|
646
|
+
ride_feed_version: string | null;
|
|
638
647
|
}
|
|
639
648
|
interface RiderCategory {
|
|
640
649
|
rider_category_id: string;
|
|
641
650
|
rider_category_name: string;
|
|
642
|
-
is_default_fare_category
|
|
643
|
-
eligibility_url
|
|
651
|
+
is_default_fare_category: 0 | 1 | null;
|
|
652
|
+
eligibility_url: string | null;
|
|
644
653
|
}
|
|
645
654
|
interface RiderTrip {
|
|
646
655
|
rider_id: string;
|
|
647
|
-
agency_id
|
|
648
|
-
trip_id
|
|
649
|
-
boarding_stop_id
|
|
650
|
-
boarding_stop_sequence
|
|
651
|
-
alighting_stop_id
|
|
652
|
-
alighting_stop_sequence
|
|
653
|
-
service_date
|
|
654
|
-
boarding_time
|
|
655
|
-
boarding_timestamp
|
|
656
|
-
alighting_time
|
|
657
|
-
alighting_timestamp
|
|
658
|
-
rider_type
|
|
659
|
-
rider_type_description
|
|
660
|
-
fare_paid
|
|
661
|
-
transaction_type
|
|
662
|
-
fare_media
|
|
663
|
-
accompanying_device
|
|
664
|
-
transfer_status
|
|
656
|
+
agency_id: string | null;
|
|
657
|
+
trip_id: string | null;
|
|
658
|
+
boarding_stop_id: string | null;
|
|
659
|
+
boarding_stop_sequence: number | null;
|
|
660
|
+
alighting_stop_id: string | null;
|
|
661
|
+
alighting_stop_sequence: number | null;
|
|
662
|
+
service_date: number | null;
|
|
663
|
+
boarding_time: string | null;
|
|
664
|
+
boarding_timestamp: UnixTimestamp | null;
|
|
665
|
+
alighting_time: string | null;
|
|
666
|
+
alighting_timestamp: UnixTimestamp | null;
|
|
667
|
+
rider_type: number | null;
|
|
668
|
+
rider_type_description: string | null;
|
|
669
|
+
fare_paid: number | null;
|
|
670
|
+
transaction_type: number | null;
|
|
671
|
+
fare_media: number | null;
|
|
672
|
+
accompanying_device: number | null;
|
|
673
|
+
transfer_status: number | null;
|
|
665
674
|
}
|
|
666
675
|
interface Ridership {
|
|
667
676
|
total_boardings: number;
|
|
668
677
|
total_alightings: number;
|
|
669
|
-
ridership_start_date
|
|
670
|
-
ridership_end_date
|
|
671
|
-
ridership_start_time
|
|
672
|
-
ridership_start_timestamp
|
|
673
|
-
ridership_end_time
|
|
674
|
-
ridership_end_timestamp
|
|
675
|
-
service_id
|
|
676
|
-
monday
|
|
677
|
-
tuesday
|
|
678
|
-
wednesday
|
|
679
|
-
thursday
|
|
680
|
-
friday
|
|
681
|
-
saturday
|
|
682
|
-
sunday
|
|
683
|
-
agency_id
|
|
684
|
-
route_id
|
|
685
|
-
direction_id
|
|
686
|
-
trip_id
|
|
687
|
-
stop_id
|
|
678
|
+
ridership_start_date: number | null;
|
|
679
|
+
ridership_end_date: number | null;
|
|
680
|
+
ridership_start_time: string | null;
|
|
681
|
+
ridership_start_timestamp: UnixTimestamp | null;
|
|
682
|
+
ridership_end_time: string | null;
|
|
683
|
+
ridership_end_timestamp: UnixTimestamp | null;
|
|
684
|
+
service_id: string | null;
|
|
685
|
+
monday: 0 | 1 | null;
|
|
686
|
+
tuesday: 0 | 1 | null;
|
|
687
|
+
wednesday: 0 | 1 | null;
|
|
688
|
+
thursday: 0 | 1 | null;
|
|
689
|
+
friday: 0 | 1 | null;
|
|
690
|
+
saturday: 0 | 1 | null;
|
|
691
|
+
sunday: 0 | 1 | null;
|
|
692
|
+
agency_id: string | null;
|
|
693
|
+
route_id: string | null;
|
|
694
|
+
direction_id: 0 | 1 | null;
|
|
695
|
+
trip_id: string | null;
|
|
696
|
+
stop_id: string | null;
|
|
688
697
|
}
|
|
689
698
|
interface TripCapacity {
|
|
690
|
-
agency_id
|
|
691
|
-
trip_id
|
|
692
|
-
service_date
|
|
693
|
-
vehicle_description
|
|
694
|
-
seated_capacity
|
|
695
|
-
standing_capacity
|
|
696
|
-
wheelchair_capacity
|
|
697
|
-
bike_capacity
|
|
699
|
+
agency_id: string | null;
|
|
700
|
+
trip_id: string | null;
|
|
701
|
+
service_date: number | null;
|
|
702
|
+
vehicle_description: string | null;
|
|
703
|
+
seated_capacity: number | null;
|
|
704
|
+
standing_capacity: number | null;
|
|
705
|
+
wheelchair_capacity: number | null;
|
|
706
|
+
bike_capacity: number | null;
|
|
698
707
|
}
|
|
699
708
|
interface CalendarAttribute {
|
|
700
709
|
service_id: string;
|
|
@@ -702,7 +711,7 @@ interface CalendarAttribute {
|
|
|
702
711
|
}
|
|
703
712
|
interface Direction {
|
|
704
713
|
route_id: string;
|
|
705
|
-
direction_id
|
|
714
|
+
direction_id: 0 | 1 | null;
|
|
706
715
|
direction: string;
|
|
707
716
|
}
|
|
708
717
|
interface RouteAttribute {
|
|
@@ -713,10 +722,10 @@ interface RouteAttribute {
|
|
|
713
722
|
}
|
|
714
723
|
interface StopAttribute {
|
|
715
724
|
stop_id: string;
|
|
716
|
-
accessibility_id
|
|
717
|
-
cardinal_direction
|
|
718
|
-
relative_position
|
|
719
|
-
stop_city
|
|
725
|
+
accessibility_id: number | null;
|
|
726
|
+
cardinal_direction: string | null;
|
|
727
|
+
relative_position: string | null;
|
|
728
|
+
stop_city: string | null;
|
|
720
729
|
}
|
|
721
730
|
|
|
722
731
|
/**
|