gtfs 4.13.3 → 4.13.4
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 +7 -7
- package/dist/bin/gtfs-export.js +135 -341
- package/dist/bin/gtfs-export.js.map +1 -1
- package/dist/bin/gtfs-import.js +182 -407
- package/dist/bin/gtfs-import.js.map +1 -1
- package/dist/bin/gtfsrealtime-update.js +22 -2929
- package/dist/bin/gtfsrealtime-update.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +285 -407
- package/dist/index.js.map +1 -1
- package/dist/models/models.d.ts +2231 -0
- package/dist/models/models.js +3076 -0
- package/dist/models/models.js.map +1 -0
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -1565,15 +1565,15 @@ const boardAlights = getBoardAlights({
|
|
|
1565
1565
|
});
|
|
1566
1566
|
```
|
|
1567
1567
|
|
|
1568
|
-
####
|
|
1568
|
+
#### getRideFeedInfo(query, fields, sortBy, options)
|
|
1569
1569
|
|
|
1570
1570
|
Returns an array of ride_feed_info that match query parameters. [Details on ride_feed_info.txt](http://gtfsride.org/specification#ride_feed_infotxt)
|
|
1571
1571
|
|
|
1572
1572
|
```js
|
|
1573
|
-
import {
|
|
1573
|
+
import { getRideFeedInfo } from 'gtfs';
|
|
1574
1574
|
|
|
1575
1575
|
// Get all ride_feed_info
|
|
1576
|
-
const rideFeedInfos =
|
|
1576
|
+
const rideFeedInfos = getRideFeedInfo();
|
|
1577
1577
|
```
|
|
1578
1578
|
|
|
1579
1579
|
#### getRiderTrips(query, fields, sortBy, options)
|
|
@@ -1592,18 +1592,18 @@ const riderTrips = getRiderTrips({
|
|
|
1592
1592
|
});
|
|
1593
1593
|
```
|
|
1594
1594
|
|
|
1595
|
-
####
|
|
1595
|
+
#### getRidership(query, fields, sortBy, options)
|
|
1596
1596
|
|
|
1597
1597
|
Returns an array of ridership that match query parameters. [Details on ridership.txt](http://gtfsride.org/specification#ridershiptxt)
|
|
1598
1598
|
|
|
1599
1599
|
```js
|
|
1600
|
-
import {
|
|
1600
|
+
import { getRidership } from 'gtfs';
|
|
1601
1601
|
|
|
1602
1602
|
// Get all ridership
|
|
1603
|
-
const riderships =
|
|
1603
|
+
const riderships = getRidership();
|
|
1604
1604
|
|
|
1605
1605
|
// Get ridership for a specific route
|
|
1606
|
-
const riderships =
|
|
1606
|
+
const riderships = getRidership({
|
|
1607
1607
|
route_id: '123',
|
|
1608
1608
|
});
|
|
1609
1609
|
```
|