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/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?: string;
170
+ agency_id: string | null;
171
171
  agency_name: string;
172
172
  agency_url: string;
173
173
  agency_timezone: string;
174
- agency_lang?: string;
175
- agency_phone?: string;
176
- agency_fare_url?: string;
177
- agency_email?: string;
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?: string;
182
+ area_name: string | null;
182
183
  }
183
184
  interface Attribution {
184
- attribution_id?: string;
185
- agency_id?: string;
186
- route_id?: string;
187
- trip_id?: string;
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?: 0 | 1;
190
- is_operator?: 0 | 1;
191
- is_authority?: 0 | 1;
192
- attribution_url?: string;
193
- attribution_email?: string;
194
- attribution_phone?: string;
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?: number;
200
- prior_notice_duration_max?: number;
201
- prior_notice_last_day?: number;
202
- prior_notice_last_time?: string;
203
- prior_notice_last_timestamp?: UnixTimestamp;
204
- prior_notice_start_day?: number;
205
- prior_notice_start_time?: string;
206
- prior_notice_start_timestamp?: UnixTimestamp;
207
- prior_notice_service_id?: string;
208
- message?: string;
209
- pickup_message?: string;
210
- drop_off_message?: string;
211
- phone_number?: string;
212
- info_url?: string;
213
- booking_url?: string;
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?: string;
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?: string;
240
- transfer_duration?: number;
240
+ agency_id: string | null;
241
+ transfer_duration: number | null;
241
242
  }
242
243
  interface FareLegRule {
243
- leg_group_id?: string;
244
- network_id?: string;
245
- from_area_id?: string;
246
- to_area_id?: string;
247
- from_timeframe_group_id?: string;
248
- to_timeframe_group_id?: string;
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?: number;
251
+ rule_priority: number | null;
251
252
  }
252
253
  interface FareMedia {
253
254
  fare_media_id: string;
254
- fare_media_name?: string;
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?: string;
260
- fare_media_id?: string;
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?: string;
267
- origin_id?: string;
268
- destination_id?: string;
269
- contains_id?: string;
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?: string;
273
- to_leg_group_id?: string;
274
- transfer_count?: number;
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?: 0 | 1 | 2 | 3;
277
+ duration_limit_type: 0 | 1 | 2 | 3 | null;
277
278
  fare_transfer_type: 0 | 1 | 2;
278
- fare_product_id?: string;
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?: string;
285
- feed_start_date?: number;
286
- feed_end_date?: number;
287
- feed_version?: string;
288
- feed_contact_email?: string;
289
- feed_contact_url?: string;
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?: 0 | 1;
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?: string;
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?: string;
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?: string;
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?: number;
327
- traversal_time?: number;
328
- stair_count?: number;
329
- max_slope?: number;
330
- min_width?: number;
331
- signposted_as?: string;
332
- reversed_signposted_as?: string;
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?: string;
341
- route_short_name?: string;
342
- route_long_name?: string;
343
- route_desc?: string;
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?: string;
346
- route_color?: string;
347
- route_text_color?: string;
348
- route_sort_order?: number;
349
- continuous_pickup?: 0 | 1 | 2 | 3;
350
- continuous_drop_off?: 0 | 1 | 2 | 3;
351
- network_id?: string;
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?: number;
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?: string;
367
- arrival_timestamp?: UnixTimestamp;
368
- departure_time?: string;
369
- departure_timestamp?: UnixTimestamp;
370
- location_group_id?: string;
371
- location_id?: string;
372
- stop_id?: string;
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?: string;
375
- start_pickup_drop_off_window?: string;
376
- start_pickup_drop_off_window_timestamp?: UnixTimestamp;
377
- pickup_type?: 0 | 1 | 2 | 3;
378
- drop_off_type?: 0 | 1 | 2 | 3;
379
- continuous_pickup?: 0 | 1 | 2 | 3;
380
- continuous_drop_off?: 0 | 1 | 2 | 3;
381
- shape_dist_traveled?: number;
382
- timepoint?: 0 | 1;
383
- pickup_booking_rule_id?: string;
384
- drop_off_booking_rule_id?: string;
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?: string;
389
- stop_name?: string;
390
- tts_stop_name?: string;
391
- stop_desc?: string;
392
- stop_lat?: number;
393
- stop_lon?: number;
394
- zone_id?: string;
395
- stop_url?: string;
396
- location_type?: 0 | 1 | 2 | 3 | 4;
397
- parent_station?: string;
398
- stop_timezone?: string;
399
- wheelchair_boarding?: 0 | 1 | 2;
400
- level_id?: string;
401
- platform_code?: string;
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?: string;
406
- end_time?: string;
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?: string;
411
- to_stop_id?: string;
412
- from_route_id?: string;
413
- to_route_id?: string;
414
- from_trip_id?: string;
415
- to_trip_id?: string;
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?: number;
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?: string;
425
- record_sub_id?: string;
426
- field_value?: string;
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?: string;
433
- trip_short_name?: string;
434
- direction_id?: 0 | 1;
435
- block_id?: string;
436
- shape_id?: string;
437
- wheelchair_accessible?: 0 | 1 | 2;
438
- bikes_allowed?: 0 | 1 | 2;
439
- cars_allowed?: 0 | 1 | 2;
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?: 0 | 1;
445
- start_date?: number;
446
- end_date?: number;
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?: string;
455
- start_timestamp?: UnixTimestamp;
456
- end_time?: string;
457
- end_timestamp?: UnixTimestamp;
458
- timetable_label?: string;
459
- service_notes?: string;
460
- orientation?: string;
461
- timetable_page_id?: string;
462
- timetable_sequence?: number;
463
- direction_name?: string;
464
- include_exceptions?: 0 | 1;
465
- show_trip_continuation?: 0 | 1;
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?: string;
470
- filename?: string;
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?: string;
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?: string;
486
- trip_id?: string;
487
- stop_id?: string;
488
- stop_sequence?: number;
489
- show_on_stoptime?: 0 | 1;
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?: string;
504
- stop_id?: string;
506
+ ops_location_id: string | null;
507
+ stop_id: string | null;
505
508
  location_sequence: number;
506
- shape_dist_traveled?: number;
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?: string;
513
- to_trip_id?: string;
514
- from_trip_id?: string;
515
- to_deadhead_id?: string;
516
- from_deadhead_id?: string;
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?: string;
523
+ ops_location_code: string | null;
521
524
  ops_location_name: string;
522
- ops_location_desc?: string;
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?: string;
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?: string;
537
+ event_from_location_id: string | null;
535
538
  event_to_location_type: 0 | 1;
536
- event_to_location_id?: string;
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?: number;
546
+ start_trip_position: number | null;
544
547
  end_type: 0 | 1 | 2;
545
548
  end_trip_id: string;
546
- end_trip_position?: number;
549
+ end_trip_position: number | null;
547
550
  }
548
551
  interface ServiceAlert {
549
- cause: number;
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
- headline: string;
553
- description: string;
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?: string;
559
- trip_start_time?: string;
560
- direction_id?: 0 | 1;
561
- route_id?: string;
562
- stop_id?: string;
563
- stop_sequence?: number;
564
- arrival_delay?: number;
565
- departure_delay?: number;
566
- departure_timestamp?: UnixTimestamp;
567
- arrival_timestamp?: UnixTimestamp;
568
- schedule_relationship?: string;
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
- update_id: string;
574
- vehicle_id?: string;
575
- trip_id?: string;
576
- trip_start_time?: string;
577
- direction_id?: 0 | 1;
578
- route_id?: string;
579
- start_date?: number;
580
- timestamp?: UnixTimestamp;
581
- schedule_relationship?: string;
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
- update_id: string;
587
- bearing?: number;
588
- latitude?: number;
589
- longitude?: number;
590
- speed?: number;
591
- current_stop_sequence?: number;
592
- trip_id?: string;
593
- trip_start_date?: number;
594
- trip_start_time?: string;
595
- congestion_level?: string;
596
- occupancy_status?: string;
597
- occupancy_percentage?: number;
598
- vehicle_stop_status?: string;
599
- vehicle_id?: string;
600
- vehicle_label?: string;
601
- vehicle_license_plate?: string;
602
- vehicle_wheelchair_accessible?: number;
603
- timestamp?: UnixTimestamp;
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?: number;
613
- boardings?: number;
614
- alightings?: number;
615
- current_load?: number;
616
- load_count?: number;
617
- load_type?: number;
618
- rack_down?: number;
619
- bike_boardings?: number;
620
- bike_alightings?: number;
621
- ramp_used?: number;
622
- ramp_boardings?: number;
623
- ramp_alightings?: number;
624
- service_date?: number;
625
- service_arrival_time?: string;
626
- service_arrival_timestamp?: UnixTimestamp;
627
- service_departure_time?: string;
628
- service_departure_timestamp?: UnixTimestamp;
629
- source?: 0 | 1 | 2 | 3 | 4;
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?: number;
634
- ride_end_date?: number;
635
- gtfs_feed_date?: number;
636
- default_currency_type?: string;
637
- ride_feed_version?: string;
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?: 0 | 1;
643
- eligibility_url?: string;
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?: string;
648
- trip_id?: string;
649
- boarding_stop_id?: string;
650
- boarding_stop_sequence?: number;
651
- alighting_stop_id?: string;
652
- alighting_stop_sequence?: number;
653
- service_date?: number;
654
- boarding_time?: string;
655
- boarding_timestamp?: UnixTimestamp;
656
- alighting_time?: string;
657
- alighting_timestamp?: UnixTimestamp;
658
- rider_type?: number;
659
- rider_type_description?: string;
660
- fare_paid?: number;
661
- transaction_type?: number;
662
- fare_media?: number;
663
- accompanying_device?: number;
664
- transfer_status?: number;
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?: number;
670
- ridership_end_date?: number;
671
- ridership_start_time?: string;
672
- ridership_start_timestamp?: UnixTimestamp;
673
- ridership_end_time?: string;
674
- ridership_end_timestamp?: UnixTimestamp;
675
- service_id?: string;
676
- monday?: 0 | 1;
677
- tuesday?: 0 | 1;
678
- wednesday?: 0 | 1;
679
- thursday?: 0 | 1;
680
- friday?: 0 | 1;
681
- saturday?: 0 | 1;
682
- sunday?: 0 | 1;
683
- agency_id?: string;
684
- route_id?: string;
685
- direction_id?: 0 | 1;
686
- trip_id?: string;
687
- stop_id?: string;
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?: string;
691
- trip_id?: string;
692
- service_date?: number;
693
- vehicle_description?: string;
694
- seated_capacity?: number;
695
- standing_capacity?: number;
696
- wheelchair_capacity?: number;
697
- bike_capacity?: number;
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?: 0 | 1;
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?: number;
717
- cardinal_direction?: string;
718
- relative_position?: string;
719
- stop_city?: string;
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
  /**