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 CHANGED
@@ -91,7 +91,7 @@ try {
91
91
  <td><a href="https://github.com/blinktaginc/gtfs-to-geojson">GTFS-to-geojson</a> creates geoJSON files for transit routes for use in mapping. It uses `node-gtfs` for downloading, importing and querying GTFS data. It provides a good example of how to use this library.</td>
92
92
  </tr>
93
93
  <tr>
94
- <td><img src="https://github.com/BlinkTagInc/gtfs-to-chart/raw/master/docs/images/gtfs-to-chart-logo.svg" alt="GTFS-to-Chart" width="200"></td>
94
+ <td><img src="https://github.com/BlinkTagInc/gtfs-to-chart/raw/main/docs/images/gtfs-to-chart-logo.svg" alt="GTFS-to-Chart" width="200"></td>
95
95
  <td><a href="https://github.com/blinktaginc/gtfs-to-chart">GTFS-to-chart</a> generates a stringline chart in D3 for all trips for a specific route using data from an agency's GTFS. It uses `node-gtfs` for downloading, importing and querying GTFS data.</td>
96
96
  </tr>
97
97
  <tr>
@@ -106,6 +106,10 @@ try {
106
106
  <td><img src="https://raw.githubusercontent.com/BlinkTagInc/transit-departures-widget/main/docs/images/transit-departures-widget-logo.svg" alt="Transit Departures Widget" width="200"></td>
107
107
  <td><a href="https://github.com/BlinkTagInc/transit-departures-widget">Transit Departures Widget</a> creates a realtime transit departures widget from GTFS and GTFS-Realtime data.</td>
108
108
  </tr>
109
+ <tr>
110
+ <td><img src="https://github.com/BlinkTagInc/gtfs-to-blocks/blob/main/docs/images/gtfs-to-blocks-logo.svg" alt="GTFS-to-Blocks" width="200"></td>
111
+ <td><a href="https://github.com/BlinkTagInc/gtfs-to-blocks">GTFS-to-Blocks</a> reads transit data from GTFS and exports all trip segments sorted by block_id and their departure times in CSV format.</td>
112
+ </tr>
109
113
  </table>
110
114
 
111
115
  ## Command-Line Usage
@@ -158,7 +162,7 @@ Copy `config-sample.json` to `config.json` and then add your projects configurat
158
162
  | [`gtfsRealtimeExpirationSeconds`](#gtfsrealtimeexpirationseconds) | integer | Amount of time in seconds to allow GTFS-Realtime data to be stored in database before allowing to be deleted. Optional, defaults to 0. |
159
163
  | [`ignoreDuplicates`](#ignoreduplicates) | boolean | Whether or not to ignore unique constraints on ids when importing GTFS, such as `trip_id`, `calendar_id`. Optional, defaults to false. |
160
164
  | [`ignoreErrors`](#ignoreerrors) | boolean | Whether or not to ignore errors during the import process. If true, failed files will be skipped while the rest are processed. Optional, defaults to false. |
161
- | [`sqlitePath`](#sqlitepath) | string | A path to an SQLite database. Optional, defaults to using an in-memory database. |
165
+ | [`sqlitePath`](#sqlitepath) | string | A path to a SQLite database. Optional, defaults to using an in-memory database. |
162
166
  | [`verbose`](#verbose) | boolean | Whether or not to print output to the console. Optional, defaults to true. |
163
167
 
164
168
  ### agencies
@@ -467,10 +471,10 @@ importGtfs({
467
471
 
468
472
  ### sqlitePath
469
473
 
470
- {String} A path to an SQLite database. Optional, defaults to using an in-memory database with a value of `:memory:`.
474
+ {String} A path to a SQLite database. Optional, defaults to using an in-memory database with a value of `:memory:`.
471
475
 
472
476
  ```json
473
- "sqlitePath": "/dev/sqlite/gtfs"
477
+ "sqlitePath": "/tmp/gtfs.sqlite"
474
478
  ```
475
479
 
476
480
  ### verbose
@@ -543,7 +547,7 @@ Configuration can be a JSON object in your code
543
547
  import { importGtfs } from 'gtfs';
544
548
 
545
549
  const config = {
546
- sqlitePath: '/dev/sqlite/gtfs',
550
+ sqlitePath: '/tmp/gtfs.sqlite',
547
551
  agencies: [
548
552
  {
549
553
  url: 'https://www.bart.gov/dev/schedules/google_transit.zip',
@@ -623,7 +627,7 @@ Use `exportGtfs()` in your code to run an export of a GTFS file specified in a c
623
627
  import { exportGtfs } from 'gtfs';
624
628
 
625
629
  const config = {
626
- sqlitePath: '/dev/sqlite/gtfs',
630
+ sqlitePath: '/tmp/gtfs.sqlite',
627
631
  agencies: [
628
632
  {
629
633
  url: 'https://www.bart.gov/dev/schedules/google_transit.zip',
@@ -237,6 +237,12 @@ var agency = {
237
237
  name: "agency_email",
238
238
  type: "text",
239
239
  nocase: true
240
+ },
241
+ {
242
+ name: "cemv_support",
243
+ type: "integer",
244
+ min: 0,
245
+ max: 2
240
246
  }
241
247
  ]
242
248
  };
@@ -1167,6 +1173,12 @@ var routes = {
1167
1173
  name: "network_id",
1168
1174
  type: "text",
1169
1175
  prefix: true
1176
+ },
1177
+ {
1178
+ name: "cemv_support",
1179
+ type: "integer",
1180
+ min: 0,
1181
+ max: 2
1170
1182
  }
1171
1183
  ]
1172
1184
  };
@@ -1421,6 +1433,12 @@ var stops = {
1421
1433
  {
1422
1434
  name: "platform_code",
1423
1435
  type: "text"
1436
+ },
1437
+ {
1438
+ name: "stop_access",
1439
+ type: "integer",
1440
+ min: 0,
1441
+ max: 1
1424
1442
  }
1425
1443
  ]
1426
1444
  };