minotor 1.0.5 → 1.0.7

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [1.0.5](https://github.com/aubryio/minotor/compare/v1.0.4...v1.0.5) (2025-02-11)
1
+ ## [1.0.7](https://github.com/aubryio/minotor/compare/v1.0.6...v1.0.7) (2025-03-12)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * expose route and duration types ([#10](https://github.com/aubryio/minotor/issues/10)) ([51ff6a5](https://github.com/aubryio/minotor/commit/51ff6a5f0e0abbd850cf0a05a5ab35734c4fdaf0))
6
+ * include time lower bound when looking for earliest trip ([#13](https://github.com/aubryio/minotor/issues/13)) ([aaabe2e](https://github.com/aubryio/minotor/commit/aaabe2e93795248c4d2038ff82ead15c9b5a24a7))
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ![GitHub Workflow Status](https://github.com/aubryio/minotor/actions/workflows/minotor.yml/badge.svg?branch=main)
4
4
 
5
+ [Documentation and examples](https://minotor.dev)
6
+
5
7
  A lightweight and easy to use public transit router primarily targeting client-side usage for research, data visualization, dynamic web and mobile apps.
6
8
 
7
9
  Unlike most transit planners out there, **minotor** can store all the transit data for a given day in memory on the client, allowing for fast runtime queries using only local data.
@@ -11,6 +13,14 @@ Privacy-conscious applications where the user does not want to share their locat
11
13
  The transit router and the stops index of **minotor** can run in the browser, on react-native or in a Node.js environment.
12
14
  Transit data (GTFS) parsing runs on Node.js, and the resulting data is serialized as a protobuf binary that can be loaded from the router.
13
15
 
16
+ ## Examples
17
+
18
+ ### In-browser transit router
19
+
20
+ An example client-side transit router running in the browser with a web worker.
21
+
22
+ [Demo](https://www.minotor.dev/#example-usage) | [Code](https://github.com/aubryio/minotor.dev/tree/main/app/examples/router)
23
+
14
24
  ## Features
15
25
 
16
26
  - GTFS feed parsing (standard and extended)
package/dist/cli.mjs CHANGED
@@ -17235,7 +17235,7 @@ class Timetable {
17235
17235
  for (let tripIndex = 0; tripIndex < route.stopTimes.length / stopsNumber; tripIndex++) {
17236
17236
  const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
17237
17237
  const stopTime = route.stopTimes[stopTimeIndex];
17238
- if (stopTime.departure > after &&
17238
+ if (stopTime.departure >= after &&
17239
17239
  stopTime.pickUpType !== 'NOT_AVAILABLE') {
17240
17240
  return tripIndex;
17241
17241
  }
@@ -17249,7 +17249,7 @@ class Timetable {
17249
17249
  tripIndex >= 0; tripIndex--) {
17250
17250
  const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
17251
17251
  const stopTime = route.stopTimes[stopTimeIndex];
17252
- if (stopTime.departure <= after) {
17252
+ if (stopTime.departure < after) {
17253
17253
  break;
17254
17254
  }
17255
17255
  if (stopTime.pickUpType !== 'NOT_AVAILABLE' &&
@@ -19908,6 +19908,7 @@ class Query {
19908
19908
  }
19909
19909
  Query.Builder = class {
19910
19910
  constructor() {
19911
+ this.toValue = [];
19911
19912
  // lastDepartureTimeValue?: Date;
19912
19913
  // via: StopId[] = [];
19913
19914
  this.optionsValue = {