gtfs 4.15.9 → 4.15.11

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 CHANGED
@@ -167,8 +167,6 @@ Copy `config-sample.json` to `config.json` and then add your projects configurat
167
167
 
168
168
  For GTFS files that contain more than one agency, you only need to list each GTFS file once in the `agencies` array, not once per agency that it contains.
169
169
 
170
- To find an agency's GTFS file, visit [transitfeeds.com](http://transitfeeds.com).
171
-
172
170
  #### agencies options
173
171
 
174
172
  | option | type | description |
@@ -188,7 +186,7 @@ To find an agency's GTFS file, visit [transitfeeds.com](http://transitfeeds.com)
188
186
  {
189
187
  "agencies": [
190
188
  {
191
- "url": "https://opendata.somewhere.com/gtfs.zip"
189
+ "url": "https://www.bart.gov/dev/schedules/google_transit.zip"
192
190
  }
193
191
  ]
194
192
  }
@@ -200,7 +198,7 @@ To find an agency's GTFS file, visit [transitfeeds.com](http://transitfeeds.com)
200
198
  {
201
199
  "agencies": [
202
200
  {
203
- "url": "https://opendata.somewhere.com/gtfs.zip",
201
+ "url": "https://www.bart.gov/dev/schedules/google_transit.zip",
204
202
  "headers": {
205
203
  "Content-Type": "application/json",
206
204
  "Authorization": "bearer 1234567890"
@@ -253,21 +251,21 @@ To find an agency's GTFS file, visit [transitfeeds.com](http://transitfeeds.com)
253
251
  {
254
252
  "agencies": [
255
253
  {
256
- "url": "https://opendata.somewhere.com/gtfs.zip",
254
+ "url": "https://www.bart.gov/dev/schedules/google_transit.zip",
257
255
  "realtimeAlerts": {
258
- "url": "https://opendata.somewhere.com/gtfs-rt/alerts",
256
+ "url": "https://api.bart.gov/gtfsrt/alerts.aspx",
259
257
  "headers": {
260
258
  "Authorization": "bearer 123456789"
261
259
  }
262
260
  },
263
261
  "realtimeTripUpdates": {
264
- "url": "https://opendata.somewhere.com/gtfs-rt/tripupdates",
262
+ "url": "https://api.bart.gov/gtfsrt/tripupdate.aspx",
265
263
  "headers": {
266
264
  "Authorization": "bearer 123456789"
267
265
  }
268
266
  },
269
267
  "realtimeVehiclePositions": {
270
- "url": "https://opendata.somewhere.com/gtfs-rt/vehiclepositions",
268
+ "url": "https://api.bart.gov/gtfsrt/vehiclepositions.aspx",
271
269
  "headers": {
272
270
  "Authorization": "bearer 123456789"
273
271
  }
@@ -400,15 +398,15 @@ importGtfs({
400
398
  {
401
399
  "agencies": [
402
400
  {
403
- "url": "https://agency.com/gtfs.zip",
401
+ "url": "https://www.bart.gov/dev/schedules/google_transit.zip",
404
402
  "realtimeAlerts": {
405
- "url": "https://opendata.somewhere.com/gtfs-rt/alerts"
403
+ "url": "https://api.bart.gov/gtfsrt/alerts.aspx"
406
404
  },
407
405
  "realtimeTripUpdates": {
408
- "url": "https://opendata.somewhere.com/gtfs-rt/tripupdates"
406
+ "url": "https://api.bart.gov/gtfsrt/tripupdate.aspx"
409
407
  },
410
408
  "realtimeVehiclePositions": {
411
- "url": "https://opendata.somewhere.com/gtfs-rt/vehiclepositions"
409
+ "url": "https://api.bart.gov/gtfsrt/vehiclepositions.aspx"
412
410
  }
413
411
  }
414
412
  ],
@@ -477,7 +475,7 @@ import { importGtfs } from 'gtfs';
477
475
  const config = {
478
476
  agencies: [
479
477
  {
480
- url: 'https://opendata.somewhere.com/gtfs.zip',
478
+ url: 'https://www.bart.gov/dev/schedules/google_transit.zip',
481
479
  exclude: ['shapes'],
482
480
  },
483
481
  ],
@@ -527,7 +525,7 @@ const config = {
527
525
  sqlitePath: '/dev/sqlite/gtfs',
528
526
  agencies: [
529
527
  {
530
- url: 'https://opendata.somewhere.com/gtfs.zip',
528
+ url: 'https://www.bart.gov/dev/schedules/google_transit.zip',
531
529
  exclude: ['shapes'],
532
530
  },
533
531
  ],
@@ -607,7 +605,7 @@ const config = {
607
605
  sqlitePath: '/dev/sqlite/gtfs',
608
606
  agencies: [
609
607
  {
610
- url: 'https://opendata.somewhere.com/gtfs.zip',
608
+ url: 'https://www.bart.gov/dev/schedules/google_transit.zip',
611
609
  exclude: ['shapes'],
612
610
  },
613
611
  ],
@@ -2749,11 +2749,19 @@ var serviceAlerts = {
2749
2749
  },
2750
2750
  {
2751
2751
  name: "cause",
2752
- type: "integer",
2753
- required: true,
2754
- min: 0,
2755
- source: "alert.cause",
2756
- default: 0
2752
+ type: "text",
2753
+ source: "alert.cause"
2754
+ },
2755
+ {
2756
+ name: "effect",
2757
+ type: "text",
2758
+ source: "alert.effect"
2759
+ },
2760
+ {
2761
+ name: "url",
2762
+ type: "text",
2763
+ source: "alert.url",
2764
+ default: ""
2757
2765
  },
2758
2766
  {
2759
2767
  name: "start_time",
@@ -2770,19 +2778,34 @@ var serviceAlerts = {
2770
2778
  default: ""
2771
2779
  },
2772
2780
  {
2773
- name: "headline",
2781
+ name: "headerText",
2774
2782
  type: "text",
2775
2783
  required: true,
2776
2784
  source: "alert.headerText.translation[0].text",
2777
2785
  default: ""
2778
2786
  },
2779
2787
  {
2780
- name: "description",
2788
+ name: "descriptionText",
2781
2789
  type: "text",
2782
2790
  required: true,
2783
2791
  source: "alert.descriptionText.translation[0].text",
2784
2792
  default: ""
2785
2793
  },
2794
+ {
2795
+ name: "ttsHeaderText",
2796
+ type: "text",
2797
+ source: "alert.ttsHeaderText.translation[0].text"
2798
+ },
2799
+ {
2800
+ name: "ttsDescriptionText",
2801
+ type: "text",
2802
+ source: "alert.ttsDescriptionText.translation[0].text"
2803
+ },
2804
+ {
2805
+ name: "severityLevel",
2806
+ type: "text",
2807
+ source: "alert.severityLevel"
2808
+ },
2786
2809
  {
2787
2810
  name: "created_timestamp",
2788
2811
  type: "integer",