gtfs 4.18.0 → 4.18.1
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 +5 -5
- 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 +286 -283
- 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 +10 -10
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,23 +530,23 @@ 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
|
cause: number;
|
|
@@ -555,52 +558,52 @@ interface ServiceAlert {
|
|
|
555
558
|
expiration_timestamp: UnixTimestamp;
|
|
556
559
|
}
|
|
557
560
|
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
|
|
561
|
+
trip_id: string | null;
|
|
562
|
+
trip_start_time: string | null;
|
|
563
|
+
direction_id: 0 | 1 | null;
|
|
564
|
+
route_id: string | null;
|
|
565
|
+
stop_id: string | null;
|
|
566
|
+
stop_sequence: number | null;
|
|
567
|
+
arrival_delay: number | null;
|
|
568
|
+
departure_delay: number | null;
|
|
569
|
+
departure_timestamp: UnixTimestamp | null;
|
|
570
|
+
arrival_timestamp: UnixTimestamp | null;
|
|
571
|
+
schedule_relationship: string | null;
|
|
569
572
|
created_timestamp: UnixTimestamp;
|
|
570
573
|
expiration_timestamp: UnixTimestamp;
|
|
571
574
|
}
|
|
572
575
|
interface TripUpdate {
|
|
573
576
|
update_id: string;
|
|
574
|
-
vehicle_id
|
|
575
|
-
trip_id
|
|
576
|
-
trip_start_time
|
|
577
|
-
direction_id
|
|
578
|
-
route_id
|
|
579
|
-
start_date
|
|
580
|
-
timestamp
|
|
581
|
-
schedule_relationship
|
|
577
|
+
vehicle_id: string | null;
|
|
578
|
+
trip_id: string | null;
|
|
579
|
+
trip_start_time: string | null;
|
|
580
|
+
direction_id: 0 | 1 | null;
|
|
581
|
+
route_id: string | null;
|
|
582
|
+
start_date: number | null;
|
|
583
|
+
timestamp: UnixTimestamp | null;
|
|
584
|
+
schedule_relationship: string | null;
|
|
582
585
|
created_timestamp: UnixTimestamp;
|
|
583
586
|
expiration_timestamp: UnixTimestamp;
|
|
584
587
|
}
|
|
585
588
|
interface VehiclePosition {
|
|
586
589
|
update_id: string;
|
|
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
|
|
590
|
+
bearing: number | null;
|
|
591
|
+
latitude: number | null;
|
|
592
|
+
longitude: number | null;
|
|
593
|
+
speed: number | null;
|
|
594
|
+
current_stop_sequence: number | null;
|
|
595
|
+
trip_id: string | null;
|
|
596
|
+
trip_start_date: number | null;
|
|
597
|
+
trip_start_time: string | null;
|
|
598
|
+
congestion_level: string | null;
|
|
599
|
+
occupancy_status: string | null;
|
|
600
|
+
occupancy_percentage: number | null;
|
|
601
|
+
vehicle_stop_status: string | null;
|
|
602
|
+
vehicle_id: string | null;
|
|
603
|
+
vehicle_label: string | null;
|
|
604
|
+
vehicle_license_plate: string | null;
|
|
605
|
+
vehicle_wheelchair_accessible: number | null;
|
|
606
|
+
timestamp: UnixTimestamp | null;
|
|
604
607
|
created_timestamp: UnixTimestamp;
|
|
605
608
|
expiration_timestamp: UnixTimestamp;
|
|
606
609
|
}
|
|
@@ -609,92 +612,92 @@ interface BoardAlight {
|
|
|
609
612
|
stop_id: string;
|
|
610
613
|
stop_sequence: number;
|
|
611
614
|
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
|
|
615
|
+
schedule_relationship: number | null;
|
|
616
|
+
boardings: number | null;
|
|
617
|
+
alightings: number | null;
|
|
618
|
+
current_load: number | null;
|
|
619
|
+
load_count: number | null;
|
|
620
|
+
load_type: number | null;
|
|
621
|
+
rack_down: number | null;
|
|
622
|
+
bike_boardings: number | null;
|
|
623
|
+
bike_alightings: number | null;
|
|
624
|
+
ramp_used: number | null;
|
|
625
|
+
ramp_boardings: number | null;
|
|
626
|
+
ramp_alightings: number | null;
|
|
627
|
+
service_date: number | null;
|
|
628
|
+
service_arrival_time: string | null;
|
|
629
|
+
service_arrival_timestamp: UnixTimestamp | null;
|
|
630
|
+
service_departure_time: string | null;
|
|
631
|
+
service_departure_timestamp: UnixTimestamp | null;
|
|
632
|
+
source: 0 | 1 | 2 | 3 | 4 | null;
|
|
630
633
|
}
|
|
631
634
|
interface RideFeedInfo {
|
|
632
635
|
ride_files: number;
|
|
633
|
-
ride_start_date
|
|
634
|
-
ride_end_date
|
|
635
|
-
gtfs_feed_date
|
|
636
|
-
default_currency_type
|
|
637
|
-
ride_feed_version
|
|
636
|
+
ride_start_date: number | null;
|
|
637
|
+
ride_end_date: number | null;
|
|
638
|
+
gtfs_feed_date: number | null;
|
|
639
|
+
default_currency_type: string | null;
|
|
640
|
+
ride_feed_version: string | null;
|
|
638
641
|
}
|
|
639
642
|
interface RiderCategory {
|
|
640
643
|
rider_category_id: string;
|
|
641
644
|
rider_category_name: string;
|
|
642
|
-
is_default_fare_category
|
|
643
|
-
eligibility_url
|
|
645
|
+
is_default_fare_category: 0 | 1 | null;
|
|
646
|
+
eligibility_url: string | null;
|
|
644
647
|
}
|
|
645
648
|
interface RiderTrip {
|
|
646
649
|
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
|
|
650
|
+
agency_id: string | null;
|
|
651
|
+
trip_id: string | null;
|
|
652
|
+
boarding_stop_id: string | null;
|
|
653
|
+
boarding_stop_sequence: number | null;
|
|
654
|
+
alighting_stop_id: string | null;
|
|
655
|
+
alighting_stop_sequence: number | null;
|
|
656
|
+
service_date: number | null;
|
|
657
|
+
boarding_time: string | null;
|
|
658
|
+
boarding_timestamp: UnixTimestamp | null;
|
|
659
|
+
alighting_time: string | null;
|
|
660
|
+
alighting_timestamp: UnixTimestamp | null;
|
|
661
|
+
rider_type: number | null;
|
|
662
|
+
rider_type_description: string | null;
|
|
663
|
+
fare_paid: number | null;
|
|
664
|
+
transaction_type: number | null;
|
|
665
|
+
fare_media: number | null;
|
|
666
|
+
accompanying_device: number | null;
|
|
667
|
+
transfer_status: number | null;
|
|
665
668
|
}
|
|
666
669
|
interface Ridership {
|
|
667
670
|
total_boardings: number;
|
|
668
671
|
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
|
|
672
|
+
ridership_start_date: number | null;
|
|
673
|
+
ridership_end_date: number | null;
|
|
674
|
+
ridership_start_time: string | null;
|
|
675
|
+
ridership_start_timestamp: UnixTimestamp | null;
|
|
676
|
+
ridership_end_time: string | null;
|
|
677
|
+
ridership_end_timestamp: UnixTimestamp | null;
|
|
678
|
+
service_id: string | null;
|
|
679
|
+
monday: 0 | 1 | null;
|
|
680
|
+
tuesday: 0 | 1 | null;
|
|
681
|
+
wednesday: 0 | 1 | null;
|
|
682
|
+
thursday: 0 | 1 | null;
|
|
683
|
+
friday: 0 | 1 | null;
|
|
684
|
+
saturday: 0 | 1 | null;
|
|
685
|
+
sunday: 0 | 1 | null;
|
|
686
|
+
agency_id: string | null;
|
|
687
|
+
route_id: string | null;
|
|
688
|
+
direction_id: 0 | 1 | null;
|
|
689
|
+
trip_id: string | null;
|
|
690
|
+
stop_id: string | null;
|
|
688
691
|
}
|
|
689
692
|
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
|
|
693
|
+
agency_id: string | null;
|
|
694
|
+
trip_id: string | null;
|
|
695
|
+
service_date: number | null;
|
|
696
|
+
vehicle_description: string | null;
|
|
697
|
+
seated_capacity: number | null;
|
|
698
|
+
standing_capacity: number | null;
|
|
699
|
+
wheelchair_capacity: number | null;
|
|
700
|
+
bike_capacity: number | null;
|
|
698
701
|
}
|
|
699
702
|
interface CalendarAttribute {
|
|
700
703
|
service_id: string;
|
|
@@ -702,7 +705,7 @@ interface CalendarAttribute {
|
|
|
702
705
|
}
|
|
703
706
|
interface Direction {
|
|
704
707
|
route_id: string;
|
|
705
|
-
direction_id
|
|
708
|
+
direction_id: 0 | 1 | null;
|
|
706
709
|
direction: string;
|
|
707
710
|
}
|
|
708
711
|
interface RouteAttribute {
|
|
@@ -713,10 +716,10 @@ interface RouteAttribute {
|
|
|
713
716
|
}
|
|
714
717
|
interface StopAttribute {
|
|
715
718
|
stop_id: string;
|
|
716
|
-
accessibility_id
|
|
717
|
-
cardinal_direction
|
|
718
|
-
relative_position
|
|
719
|
-
stop_city
|
|
719
|
+
accessibility_id: number | null;
|
|
720
|
+
cardinal_direction: string | null;
|
|
721
|
+
relative_position: string | null;
|
|
722
|
+
stop_city: string | null;
|
|
720
723
|
}
|
|
721
724
|
|
|
722
725
|
/**
|