gtfs-to-html 2.9.0 → 2.9.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.
Files changed (40) hide show
  1. package/config-sample.json +68 -0
  2. package/dist/app/index.js +2 -1
  3. package/dist/app/index.js.map +1 -1
  4. package/dist/bin/gtfs-to-html.js +16 -9
  5. package/dist/bin/gtfs-to-html.js.map +1 -1
  6. package/dist/index.js +16 -9
  7. package/dist/index.js.map +1 -1
  8. package/docker/Dockerfile +14 -0
  9. package/docker/README.md +5 -0
  10. package/docker/config.json +21 -0
  11. package/docker/docker-compose.yml +10 -0
  12. package/examples/stop_attributes.txt +6 -0
  13. package/examples/timetable_notes.txt +8 -0
  14. package/examples/timetable_notes_references.txt +8 -0
  15. package/examples/timetable_pages.txt +3 -0
  16. package/examples/timetable_stop_order.txt +16 -0
  17. package/examples/timetables.txt +9 -0
  18. package/package.json +8 -3
  19. package/views/default/css/overview_styles.css +198 -0
  20. package/views/default/css/timetable_pdf_styles.css +69 -0
  21. package/views/default/css/timetable_styles.css +522 -0
  22. package/views/default/formatting_functions.pug +104 -0
  23. package/views/default/js/system-map.js +594 -0
  24. package/views/default/js/timetable-map.js +753 -0
  25. package/views/default/js/timetable-menu.js +57 -0
  26. package/views/default/layout.pug +11 -0
  27. package/views/default/overview.pug +27 -0
  28. package/views/default/overview_full.pug +16 -0
  29. package/views/default/timetable_continuation_as.pug +7 -0
  30. package/views/default/timetable_continuation_from.pug +7 -0
  31. package/views/default/timetable_horizontal.pug +42 -0
  32. package/views/default/timetable_hourly.pug +30 -0
  33. package/views/default/timetable_map.pug +15 -0
  34. package/views/default/timetable_menu.pug +48 -0
  35. package/views/default/timetable_note_symbol.pug +5 -0
  36. package/views/default/timetable_stop_name.pug +13 -0
  37. package/views/default/timetable_stoptime.pug +17 -0
  38. package/views/default/timetable_vertical.pug +67 -0
  39. package/views/default/timetablepage.pug +64 -0
  40. package/views/default/timetablepage_full.pug +25 -0
@@ -0,0 +1,68 @@
1
+ {
2
+ "agencies": [
3
+ {
4
+ "agencyKey": "marintransit",
5
+ "url": "https://marintransit.org/data/google_transit.zip",
6
+ "realtimeAlerts": {
7
+ "url": "https://api.marintransit.org/alerts"
8
+ },
9
+ "realtimeTripUpdates": {
10
+ "url": "https://api.marintransit.org/tripupdates"
11
+ },
12
+ "realtimeVehiclePositions": {
13
+ "url": "https://api.marintransit.org/vehiclepositions"
14
+ }
15
+ }
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,
37
+ "mapboxAccessToken": "YOUR MAPBOX ACCESS TOKEN",
38
+ "menuType": "jump",
39
+ "noDropoffSymbol": "‡",
40
+ "noDropoffText": "No drop off available",
41
+ "noHead": false,
42
+ "noPickupSymbol": "**",
43
+ "noPickupText": "No pickup available",
44
+ "noServiceSymbol": "—",
45
+ "noServiceText": "No service at this stop",
46
+ "outputFormat": "html",
47
+ "requestDropoffSymbol": "†",
48
+ "requestDropoffText": "Must request drop off",
49
+ "requestPickupSymbol": "***",
50
+ "requestPickupText": "Request stop - call for pickup",
51
+ "serviceNotProvidedOnText": "Service not provided on",
52
+ "serviceProvidedOnText": "Service provided on",
53
+ "showArrivalOnDifference": 0.2,
54
+ "showCalendarExceptions": true,
55
+ "showMap": true,
56
+ "showOnlyTimepoint": true,
57
+ "showRouteTitle": true,
58
+ "showStopCity": false,
59
+ "showStopDescription": false,
60
+ "showStoptimesForRequestStops": true,
61
+ "skipImport": false,
62
+ "sortingAlgorithm": "common",
63
+ "templatePath": "views/default",
64
+ "timeFormat": "h:mma",
65
+ "useParentStation": true,
66
+ "verbose": true,
67
+ "zipOutput": false
68
+ }
package/dist/app/index.js CHANGED
@@ -365,7 +365,7 @@ function getAgencyGeoJSON(config2) {
365
365
  }
366
366
 
367
367
  // package.json
368
- var version = "2.8.1";
368
+ var version = "2.9.1";
369
369
 
370
370
  // src/lib/utils.ts
371
371
  var isTimepoint = (stoptime) => {
@@ -1341,6 +1341,7 @@ function setDefaultConfig(initialConfig) {
1341
1341
  const config2 = Object.assign(defaults, initialConfig);
1342
1342
  if (config2.outputFormat === "pdf") {
1343
1343
  config2.noHead = false;
1344
+ config2.menuType = "none";
1344
1345
  }
1345
1346
  config2.hasGtfsRealtime = config2.agencies.some(
1346
1347
  (agency) => agency.realtimeTripUpdates?.url || agency.realtimeVehiclePositions?.url