gtfs-to-html 2.9.6 → 2.9.8
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 +1 -1
- package/config-sample.json +3 -46
- package/dist/app/index.js +5 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +6 -3
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ Many transit agencies use `gtfs-to-html` to generate the schedule pages used on
|
|
|
89
89
|
- [Victor Valley Transit](https://vvta.org)
|
|
90
90
|
- [Worcester Regional Transit Authority](https://therta.com)
|
|
91
91
|
|
|
92
|
-
Are you using `gtfs-to-html`? Let us know via email (
|
|
92
|
+
Are you using `gtfs-to-html`? Let us know via email [gtfs@blinktag.com](mailto:gtfs@blinktag.com) or via opening a github issue or pull request if your agency is using this library.
|
|
93
93
|
|
|
94
94
|
`gtfs-to-html` is used as an integral part of [`transit-custom-posts`](https://trilliumtransit.github.io/transit-custom-posts/) - a GTFS-optimized Wordpress plugin for transit websites.
|
|
95
95
|
|
package/config-sample.json
CHANGED
|
@@ -14,56 +14,13 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
|
-
"
|
|
18
|
-
"allowEmptyTimetables": false,
|
|
19
|
-
"beautify": false,
|
|
20
|
-
"coordinatePrecision": 5,
|
|
21
|
-
"dateFormat": "MMM D, YYYY",
|
|
22
|
-
"daysShortStrings": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
23
|
-
"daysStrings": [
|
|
24
|
-
"Monday",
|
|
25
|
-
"Tuesday",
|
|
26
|
-
"Wednesday",
|
|
27
|
-
"Thursday",
|
|
28
|
-
"Friday",
|
|
29
|
-
"Saturday",
|
|
30
|
-
"Sunday"
|
|
31
|
-
],
|
|
32
|
-
"defaultOrientation": "vertical",
|
|
33
|
-
"effectiveDate": "July 8, 2016",
|
|
34
|
-
"interpolatedStopSymbol": "•",
|
|
35
|
-
"interpolatedStopText": "Estimated time of arrival",
|
|
36
|
-
"linkStopUrls": false,
|
|
17
|
+
"linkStopUrls": true,
|
|
37
18
|
"mapboxAccessToken": "YOUR MAPBOX ACCESS TOKEN",
|
|
38
|
-
"menuType": "
|
|
39
|
-
"noDropoffSymbol": "‡",
|
|
40
|
-
"noDropoffText": "No drop off available",
|
|
19
|
+
"menuType": "radio",
|
|
41
20
|
"noHead": false,
|
|
42
|
-
"noPickupSymbol": "**",
|
|
43
|
-
"noPickupText": "No pickup available",
|
|
44
|
-
"noServiceSymbol": "—",
|
|
45
|
-
"noServiceText": "No service at this stop",
|
|
46
21
|
"outputFormat": "html",
|
|
47
|
-
"outputPath": "custom/output/path",
|
|
48
|
-
"requestDropoffSymbol": "†",
|
|
49
|
-
"requestDropoffText": "Must request drop off",
|
|
50
|
-
"requestPickupSymbol": "***",
|
|
51
|
-
"requestPickupText": "Request stop - call for pickup",
|
|
52
|
-
"serviceNotProvidedOnText": "Service not provided on",
|
|
53
|
-
"serviceProvidedOnText": "Service provided on",
|
|
54
|
-
"showArrivalOnDifference": 0.2,
|
|
55
|
-
"showCalendarExceptions": true,
|
|
56
22
|
"showMap": true,
|
|
57
23
|
"showOnlyTimepoint": true,
|
|
58
|
-
"showRouteTitle": true,
|
|
59
|
-
"showStopCity": false,
|
|
60
|
-
"showStopDescription": false,
|
|
61
|
-
"showStoptimesForRequestStops": true,
|
|
62
|
-
"skipImport": false,
|
|
63
|
-
"sortingAlgorithm": "common",
|
|
64
|
-
"templatePath": "views/default",
|
|
65
|
-
"timeFormat": "h:mma",
|
|
66
24
|
"useParentStation": true,
|
|
67
|
-
"verbose": true
|
|
68
|
-
"zipOutput": false
|
|
25
|
+
"verbose": true
|
|
69
26
|
}
|
package/dist/app/index.js
CHANGED
|
@@ -376,7 +376,7 @@ function getAgencyGeoJSON(config2) {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
// package.json
|
|
379
|
-
var version = "2.9.
|
|
379
|
+
var version = "2.9.8";
|
|
380
380
|
|
|
381
381
|
// src/lib/utils.ts
|
|
382
382
|
var isTimepoint = (stoptime) => {
|
|
@@ -1387,7 +1387,10 @@ function getFormattedTimetablePage(timetablePageId, config2) {
|
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
const uniqueRoutes = uniqBy(
|
|
1390
|
+
const uniqueRoutes = uniqBy(
|
|
1391
|
+
flatMap2(consolidatedTimetables, (timetable) => timetable.routes),
|
|
1392
|
+
"route_id"
|
|
1393
|
+
);
|
|
1391
1394
|
const formattedTimetablePage = {
|
|
1392
1395
|
...timetablePage,
|
|
1393
1396
|
consolidatedTimetables,
|