gtfs-to-html 2.9.7 → 2.9.9

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
@@ -79,6 +79,7 @@ Many transit agencies use `gtfs-to-html` to generate the schedule pages used on
79
79
  - [Palo Verde Valley Transit Agency](http://pvvta.com)
80
80
  - [Petaluma Transit](http://transit.cityofpetaluma.net)
81
81
  - [Rogue Valley Transportation District (Medford, OR)](https://rvtd.org)
82
+ - [rabbittransit (York and Adams County, PA)](https://www.rabbittransit.org)
82
83
  - [RTC Washoe (Reno, NV)](https://www.rtcwashoe.com)
83
84
  - [Santa Barbara Metropolitan Transit District](https://sbmtd.gov)
84
85
  - [Sonoma County Transit](http://sctransit.com)
@@ -14,56 +14,13 @@
14
14
  }
15
15
  }
16
16
  ],
17
- "sqlitePath": "/tmp/gtfs",
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": "jump",
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.5";
379
+ var version = "2.9.9";
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(flatMap2(consolidatedTimetables, (timetable) => timetable.routes), "route_id");
1390
+ const uniqueRoutes = uniqBy(
1391
+ flatMap2(consolidatedTimetables, (timetable) => timetable.routes),
1392
+ "route_id"
1393
+ );
1391
1394
  const formattedTimetablePage = {
1392
1395
  ...timetablePage,
1393
1396
  consolidatedTimetables,
@@ -1890,6 +1893,15 @@ app.use(
1890
1893
  dirname2(fileURLToPath2(import.meta.resolve("gtfs-realtime-pbf-js-module")))
1891
1894
  )
1892
1895
  );
1896
+ app.use(
1897
+ "/js",
1898
+ express.static(
1899
+ join2(
1900
+ dirname2(fileURLToPath2(import.meta.resolve("anchorme"))),
1901
+ "../../dist/browser"
1902
+ )
1903
+ )
1904
+ );
1893
1905
  app.use("/", router);
1894
1906
  app.set("port", process.env.PORT || 3e3);
1895
1907
  var server = app.listen(app.get("port"), () => {