@tiducto/spider-sdk-typescript 1.4.1 → 1.6.0
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/dist/contract/routing/BoardPreferencesInput.d.ts +1 -1
- package/dist/contract/routing/BoardPreferencesInput.d.ts.map +1 -1
- package/dist/contract/routing/DeparturesRequest.d.ts +3 -0
- package/dist/contract/routing/DeparturesRequest.d.ts.map +1 -1
- package/dist/contract/routing/EstimatedDelay.d.ts +7 -0
- package/dist/contract/routing/EstimatedDelay.d.ts.map +1 -0
- package/dist/contract/routing/EstimatedDelay.js +2 -0
- package/dist/contract/routing/EstimatedDelay.js.map +1 -0
- package/dist/contract/routing/EstimatedDelaysResponse.d.ts +7 -0
- package/dist/contract/routing/EstimatedDelaysResponse.d.ts.map +1 -0
- package/dist/contract/routing/EstimatedDelaysResponse.js +2 -0
- package/dist/contract/routing/EstimatedDelaysResponse.js.map +1 -0
- package/dist/contract/routing/Geometry.d.ts +1 -1
- package/dist/contract/routing/Leg.d.ts +2 -1
- package/dist/contract/routing/Leg.d.ts.map +1 -1
- package/dist/contract/routing/PlanCoordinateInput.d.ts +2 -2
- package/dist/contract/routing/PlanCoordinateInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts +1 -1
- package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts.map +1 -1
- package/dist/contract/routing/PlanStreamRequest.d.ts +4 -4
- package/dist/contract/routing/PlanStreamRequest.d.ts.map +1 -1
- package/dist/contract/routing/PlanTripRequest.d.ts +4 -4
- package/dist/contract/routing/PlanTripRequest.d.ts.map +1 -1
- package/dist/contract/routing/PlanTripResponse.d.ts +2 -2
- package/dist/contract/routing/PlanTripResponse.d.ts.map +1 -1
- package/dist/contract/routing/PlanViaLocationInput.d.ts +1 -1
- package/dist/contract/routing/PlanViaLocationInput.d.ts.map +1 -1
- package/dist/contract/routing/Reliability.d.ts +1 -1
- package/dist/contract/routing/Reliability.d.ts.map +1 -1
- package/dist/contract/routing/RoutingError.d.ts +1 -1
- package/dist/contract/routing/RoutingError.d.ts.map +1 -1
- package/dist/contract/routing/RoutingErrorCode.d.ts +1 -1
- package/dist/contract/routing/RoutingErrorCode.d.ts.map +1 -1
- package/dist/contract/routing/StopDeparturesStoptime.d.ts +3 -1
- package/dist/contract/routing/StopDeparturesStoptime.d.ts.map +1 -1
- package/dist/contract/routing/Stoptime.d.ts +1 -1
- package/dist/contract/routing/Stoptime.d.ts.map +1 -1
- package/dist/contract/routing/TripGeometry.d.ts +1 -1
- package/dist/contract/routing/TripRequest.d.ts +5 -2
- package/dist/contract/routing/TripRequest.d.ts.map +1 -1
- package/dist/contract/routing/WalkPreferencesInput.d.ts +2 -2
- package/dist/contract/routing/WalkPreferencesInput.d.ts.map +1 -1
- package/dist/contract/routing/WheelchairPreferencesInput.d.ts +1 -1
- package/dist/contract/routing/WheelchairPreferencesInput.d.ts.map +1 -1
- package/dist/contract/routing/index.d.ts +2 -0
- package/dist/contract/routing/index.d.ts.map +1 -1
- package/dist/contractVersion.d.ts +1 -1
- package/dist/contractVersion.js +1 -1
- package/dist/enums.d.ts +2 -2
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +2 -1
- package/dist/enums.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/location.d.ts +4 -1
- package/dist/location.d.ts.map +1 -1
- package/dist/location.js +4 -1
- package/dist/location.js.map +1 -1
- package/dist/polling.d.ts +2 -2
- package/dist/polling.d.ts.map +1 -1
- package/dist/polling.js +4 -4
- package/dist/polling.js.map +1 -1
- package/dist/realtime.d.ts +12 -5
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +19 -6
- package/dist/realtime.js.map +1 -1
- package/dist/routing.d.ts +44 -11
- package/dist/routing.d.ts.map +1 -1
- package/dist/routing.js +49 -10
- package/dist/routing.js.map +1 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdkVersion.d.ts +1 -1
- package/dist/sdkVersion.js +1 -1
- package/dist/serviceDate.d.ts +0 -2
- package/dist/serviceDate.d.ts.map +1 -1
- package/dist/serviceDate.js +0 -5
- package/dist/serviceDate.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Boarding preferences. */
|
|
2
2
|
export interface BoardPreferencesInput {
|
|
3
|
-
/** How much worse waiting at a stop is than riding for the same time, a multiplier from 0.1 to 100000; rejected, never clamped. */
|
|
3
|
+
/** How much worse waiting at a stop is than riding for the same time, a multiplier from 0.1 to 100000; rejected, never clamped. Rounded to a step of 0.1 below 3, 0.5 below 10 and 1 from 10, ties to even. */
|
|
4
4
|
waitReluctance?: number;
|
|
5
5
|
/** Least time at the stop before boarding, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. */
|
|
6
6
|
slack?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BoardPreferencesInput.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,WAAW,qBAAqB;IACpC
|
|
1
|
+
{"version":3,"file":"BoardPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BoardPreferencesInput.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,WAAW,qBAAqB;IACpC,+MAA+M;IAC/M,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kHAAkH;IAClH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Reliability } from './Reliability.ts';
|
|
1
2
|
/** POST body for `/routing/v1/departures`. A key not listed here is a 400 `<key> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
2
3
|
export interface DeparturesRequest {
|
|
3
4
|
/** Feed-prefixed id (`<feedId>:<id>`) of a stop, for that platform's board, or of a station, for all its platforms. A bare or foreign-prefixed id resolves to nothing, and `stop` is null. */
|
|
@@ -8,5 +9,7 @@ export interface DeparturesRequest {
|
|
|
8
9
|
startTime?: number;
|
|
9
10
|
/** Seconds after `startTime` the board covers: 1 to 86400 (24 hours); rejected, never clamped. */
|
|
10
11
|
timeRange: number;
|
|
12
|
+
/** The level `typicalDelay` is given at; the times do not depend on it. Omitted or null, `typicalDelay` is null. A value outside `Reliability` is a 400 `reliability is invalid`. */
|
|
13
|
+
reliability?: Reliability;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=DeparturesRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeparturesRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":"AAAA,mRAAmR;AACnR,MAAM,WAAW,iBAAiB;IAChC,8LAA8L;IAC9L,EAAE,EAAE,MAAM,CAAC;IACX,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DeparturesRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,mRAAmR;AACnR,MAAM,WAAW,iBAAiB;IAChC,8LAA8L;IAC9L,EAAE,EAAE,MAAM,CAAC;IACX,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;IAClB,qLAAqL;IACrL,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Reliability } from './Reliability.ts';
|
|
2
|
+
export interface EstimatedDelay {
|
|
3
|
+
reliability: Reliability;
|
|
4
|
+
/** Seconds: the level's percentile of the trip's recorded delay at this stop on the service date's day type, from the environment's realtime history; never below 0. */
|
|
5
|
+
delay: number;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EstimatedDelay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimatedDelay.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/EstimatedDelay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,wKAAwK;IACxK,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimatedDelay.js","sourceRoot":"","sources":["../../../src/contract/routing/EstimatedDelay.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EstimatedDelay } from './EstimatedDelay.ts';
|
|
2
|
+
/** `estimatedDelays` is the history table, or null when the trip id resolves to no trip, the stop position is not on the trip, or the trip has no history at that stop on the service date's day type and no earlier trip of the pattern shifts its arrival at any level. */
|
|
3
|
+
export interface EstimatedDelaysResponse {
|
|
4
|
+
/** Three entries, in the order `STANDARD`, `SAFE`, `VERY_SAFE`. History only: live realtime never changes them, so for a live trip they are present while `typicalDelay` is null. For a trip without live realtime they equal `trip`'s `typicalDelay` wherever that is not null, unless a live trip ahead of it in the pattern shifts that value; a level with no shift is 0. */
|
|
5
|
+
estimatedDelays: EstimatedDelay[] | null;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EstimatedDelaysResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimatedDelaysResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/EstimatedDelaysResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,6QAA6Q;AAC7Q,MAAM,WAAW,uBAAuB;IACtC,iXAAiX;IACjX,eAAe,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimatedDelaysResponse.js","sourceRoot":"","sources":["../../../src/contract/routing/EstimatedDelaysResponse.ts"],"names":[],"mappings":""}
|
|
@@ -10,8 +10,9 @@ export interface Leg {
|
|
|
10
10
|
mode: Mode;
|
|
11
11
|
start: LegTime;
|
|
12
12
|
end: LegTime;
|
|
13
|
-
/** Seconds of delay applied to this leg's arrival at the requested `reliability`: that level's percentile
|
|
13
|
+
/** Seconds of delay applied to this leg's arrival at the requested `reliability`: that level's percentile of the trip's recorded delay at the alighting stop on the service date's day type, from the environment's realtime history. Never below 0. At each level, no trip arrives at a stop, delay applied, before an earlier trip of the same pattern does. Null when `reliability` is omitted, when the trip has live realtime, a canceled trip included, or when there is no history, and on a walk leg. */
|
|
14
14
|
typicalArrivalDelay: number | null;
|
|
15
|
+
/** The realtime state of the leg's trip; `SCHEDULED` on a walk leg. */
|
|
15
16
|
realtimeState: RealtimeState;
|
|
16
17
|
/** True when the leg's times include realtime. */
|
|
17
18
|
realTime: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Leg.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Leg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,a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M,GAAG,IAAI,CAAC;IACxB,cAAc;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,gQAAgQ;IAChQ,wBAAwB,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,QAAQ,CAAC;CACvB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** A WGS84 point. */
|
|
2
2
|
export interface PlanCoordinateInput {
|
|
3
|
-
/** Latitude in degrees, -90 to 90; rejected, never clamped. */
|
|
3
|
+
/** Latitude in degrees, -90 to 90; rejected, never clamped. Rounded to 7 decimals (about 1 cm), ties away from zero. */
|
|
4
4
|
latitude: number;
|
|
5
|
-
/** Longitude in degrees, -180 to 180; rejected, never clamped. */
|
|
5
|
+
/** Longitude in degrees, -180 to 180; rejected, never clamped. Rounded to 7 decimals (about 1 cm), ties away from zero. */
|
|
6
6
|
longitude: number;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=PlanCoordinateInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,MAAM,WAAW,mBAAmB;IAClC
|
|
1
|
+
{"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,MAAM,WAAW,mBAAmB;IAClC,wHAAwH;IACxH,QAAQ,EAAE,MAAM,CAAC;IACjB,2HAA2H;IAC3H,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -11,7 +11,7 @@ export interface PlanStreamPageInfoEvent {
|
|
|
11
11
|
hasPreviousPage: boolean;
|
|
12
12
|
/** The window the stream searched, as an ISO-8601 duration; null when no transit search ran, as for a declined, direct-only or unroutable plan. */
|
|
13
13
|
searchWindowUsed: string | null;
|
|
14
|
-
/** Why the plan was declined
|
|
14
|
+
/** Why the plan was declined or kept no transit itinerary in the window; empty otherwise. */
|
|
15
15
|
routingErrors: RoutingError[];
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=PlanStreamPageInfoEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanStreamPageInfoEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iIAAiI;AACjI,MAAM,WAAW,uBAAuB;IACtC,4HAA4H;IAC5H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yHAAyH;IACzH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,mJAAmJ;IACnJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,
|
|
1
|
+
{"version":3,"file":"PlanStreamPageInfoEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iIAAiI;AACjI,MAAM,WAAW,uBAAuB;IACtC,4HAA4H;IAC5H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yHAAyH;IACzH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,mJAAmJ;IACnJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,6FAA6F;IAC7F,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B"}
|
|
@@ -7,11 +7,11 @@ import type { Reliability } from './Reliability.ts';
|
|
|
7
7
|
/** POST body for `/routing/v1/plan-stream`: the Plan Trip search, streamed. Instead of a fixed window, the stream widens its search until it has sent at least `targetResults` itineraries or has searched `maxWindow`. To continue, send the `pageInfo` event's `endCursor` as `after` (later) or its `startCursor` as `before` (earlier); `before` and `after` are exclusive. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`) and the sort; `dateTime` stays required and is still checked. A key not listed here, at any depth, is a 400 `<path> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
8
8
|
export interface PlanStreamRequest {
|
|
9
9
|
dateTime: PlanDateTimeInput;
|
|
10
|
-
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`. */
|
|
10
|
+
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`; so is a coordinate with no street near enough to link to, and one outside the area the router covers is `OUTSIDE_BOUNDS` on `FROM`. */
|
|
11
11
|
origin: PlanLabeledLocationInput;
|
|
12
|
-
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`. */
|
|
12
|
+
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`; so is a coordinate with no street near enough to link to, and one outside the area the router covers is `OUTSIDE_BOUNDS` on `TO`. */
|
|
13
13
|
destination: PlanLabeledLocationInput;
|
|
14
|
-
/** Locations the journey must visit or pass through, in the order given
|
|
14
|
+
/** Locations the journey must visit or pass through, in the order given; `visit` and `passThrough` entries may be mixed. How many a request takes is an environment setting, and an environment set to 0 has via turned off; more is a 400 `via is out of range`. A via stop id that resolves to no stop or station is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `VIA`. */
|
|
15
15
|
via?: PlanViaLocationInput[];
|
|
16
16
|
modes?: PlanModesInput;
|
|
17
17
|
preferences?: PlanPreferencesInput;
|
|
@@ -23,7 +23,7 @@ export interface PlanStreamRequest {
|
|
|
23
23
|
before?: string;
|
|
24
24
|
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
|
|
25
25
|
after?: string;
|
|
26
|
-
/** Delay-aware planning level
|
|
26
|
+
/** Delay-aware planning level: each leg's arrival is planned with its `typicalArrivalDelay` at this level. Boarding keeps the scheduled departure, and a trip with live realtime uses its realtime times. Omitted or null plans on the timetable alone. */
|
|
27
27
|
reliability?: Reliability;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=PlanStreamRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanStreamRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,yxBAAyxB;AACzxB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B
|
|
1
|
+
{"version":3,"file":"PlanStreamRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,yxBAAyxB;AACzxB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mUAAmU;IACnU,MAAM,EAAE,wBAAwB,CAAC;IACjC,6TAA6T;IAC7T,WAAW,EAAE,wBAAwB,CAAC;IACtC,6XAA6X;IAC7X,GAAG,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,2KAA2K;IAC3K,aAAa,EAAE,MAAM,CAAC;IACtB,6VAA6V;IAC7V,SAAS,EAAE,MAAM,CAAC;IAClB,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2PAA2P;IAC3P,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -7,11 +7,11 @@ import type { Reliability } from './Reliability.ts';
|
|
|
7
7
|
/** POST body for `/routing/v1/plan`: one page of itineraries. Paging: `before` and `after` are exclusive. Use `first` with `after` or with no cursor, and `last` only with `before`. The next page is the same body plus `after` (the page's `pageInfo.endCursor`), sized by `first`. The previous page is the same body without `first` and `after`, plus `before` (`pageInfo.startCursor`), sized by `last`. Any other pairing is a 400 naming the member that breaks it. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`), `searchWindow` and the sort, which stay required and are still checked. A key not listed here, at any depth, is a 400 `<path> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
8
8
|
export interface PlanTripRequest {
|
|
9
9
|
dateTime: PlanDateTimeInput;
|
|
10
|
-
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`. */
|
|
10
|
+
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`; so is a coordinate with no street near enough to link to, and one outside the area the router covers is `OUTSIDE_BOUNDS` on `FROM`. */
|
|
11
11
|
origin: PlanLabeledLocationInput;
|
|
12
|
-
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`. */
|
|
12
|
+
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`; so is a coordinate with no street near enough to link to, and one outside the area the router covers is `OUTSIDE_BOUNDS` on `TO`. */
|
|
13
13
|
destination: PlanLabeledLocationInput;
|
|
14
|
-
/** Locations the journey must visit or pass through, in the order given
|
|
14
|
+
/** Locations the journey must visit or pass through, in the order given; `visit` and `passThrough` entries may be mixed. How many a request takes is an environment setting, and an environment set to 0 has via turned off; more is a 400 `via is out of range`. A via stop id that resolves to no stop or station is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `VIA`. */
|
|
15
15
|
via?: PlanViaLocationInput[];
|
|
16
16
|
modes?: PlanModesInput;
|
|
17
17
|
preferences?: PlanPreferencesInput;
|
|
@@ -25,7 +25,7 @@ export interface PlanTripRequest {
|
|
|
25
25
|
before?: string;
|
|
26
26
|
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
|
|
27
27
|
after?: string;
|
|
28
|
-
/** Delay-aware planning level
|
|
28
|
+
/** Delay-aware planning level: each leg's arrival is planned with its `typicalArrivalDelay` at this level. Boarding keeps the scheduled departure, and a trip with live realtime uses its realtime times. Omitted or null plans on the timetable alone. */
|
|
29
29
|
reliability?: Reliability;
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=PlanTripRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanTripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,g4BAAg4B;AACh4B,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B
|
|
1
|
+
{"version":3,"file":"PlanTripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,g4BAAg4B;AACh4B,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mUAAmU;IACnU,MAAM,EAAE,wBAAwB,CAAC;IACjC,6TAA6T;IAC7T,WAAW,EAAE,wBAAwB,CAAC;IACtC,6XAA6X;IAC7X,GAAG,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,gOAAgO;IAChO,YAAY,EAAE,MAAM,CAAC;IACrB,4KAA4K;IAC5K,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wJAAwJ;IACxJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2PAA2P;IAC3P,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Itinerary } from './Itinerary.ts';
|
|
2
2
|
import type { PlanPageInfo } from './PlanPageInfo.ts';
|
|
3
3
|
import type { RoutingError } from './RoutingError.ts';
|
|
4
|
-
/** One page of itineraries.
|
|
4
|
+
/** One page of itineraries. A search that ran and kept no transit itinerary in the window says why in `routingErrors`: `NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW`, or `WALKING_BETTER_THAN_TRANSIT` when walking beat every transit itinerary found. A plan the router declines has the reason in `routingErrors`; with `NO_STOPS_IN_RANGE` or `NO_TRANSIT_CONNECTION`, `itineraries` holds the direct walk when one exists, and is empty otherwise. */
|
|
5
5
|
export interface PlanTripResponse {
|
|
6
6
|
itineraries: Itinerary[];
|
|
7
7
|
pageInfo: PlanPageInfo;
|
|
8
|
-
/** Why the plan was declined
|
|
8
|
+
/** Why the plan was declined or kept no transit itinerary in the window; empty otherwise. */
|
|
9
9
|
routingErrors: RoutingError[];
|
|
10
10
|
/** The date-time the search started from; with a cursor, the cursor's. */
|
|
11
11
|
searchDateTime: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanTripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"PlanTripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,sbAAsb;AACtb,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,YAAY,CAAC;IACvB,6FAA6F;IAC7F,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -2,7 +2,7 @@ import type { PlanPassThroughViaLocationInput } from './PlanPassThroughViaLocati
|
|
|
2
2
|
import type { PlanVisitViaLocationInput } from './PlanVisitViaLocationInput.ts';
|
|
3
3
|
/** Exactly one of `passThrough`, `visit`; neither or both is a 400 `via is invalid`. */
|
|
4
4
|
export interface PlanViaLocationInput {
|
|
5
|
-
/** The journey passes the location
|
|
5
|
+
/** The journey passes the location: on board, alighting there, or starting there. A stop where the vehicle does not let passengers off is not passed on board, and walking there to board is not a pass. */
|
|
6
6
|
passThrough?: PlanPassThroughViaLocationInput;
|
|
7
7
|
/** The journey stops at the location: it alights there and boards again after `minimumWaitTime`. */
|
|
8
8
|
visit?: PlanVisitViaLocationInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACnC
|
|
1
|
+
{"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACnC,4MAA4M;IAC5M,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,oGAAoG;IACpG,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Delay level: `STANDARD`, `SAFE` and `VERY_SAFE` are the p50, p70 and p90 of the trip's recorded delay at a stop, on the service date's day type, from the environment's realtime history. Omitted means the timetable, on every operation. */
|
|
2
2
|
export type Reliability = 'STANDARD' | 'SAFE' | 'VERY_SAFE' | (string & {});
|
|
3
3
|
//# sourceMappingURL=Reliability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reliability.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Reliability.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Reliability.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Reliability.ts"],"names":[],"mappings":"AAAA,iPAAiP;AACjP,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,MAAM,GACN,WAAW,GACX,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InputField } from './InputField.ts';
|
|
2
2
|
import type { RoutingErrorCode } from './RoutingErrorCode.ts';
|
|
3
|
-
/** Why the router declined the plan or found no transit route. `LOCATION_NOT_FOUND`: a stop id resolves to no stop or station (`inputField` `FROM`, `TO` or `VIA`). `NO_STOPS_IN_RANGE`: no stop is in walking range of the origin (`FROM`) or the destination (`TO`). `NO_TRANSIT_CONNECTION`: the origin and the destination lie in parts of the transit network that no trip connects (`inputField` null). `WALKING_BETTER_THAN_TRANSIT`: the origin and destination are the same stop, a station and one of its own platforms, or coordinates that snap to the same street point (`inputField` null). `OUTSIDE_SERVICE_PERIOD`: the date is outside what the feed covers (`DATE_TIME`). New codes may be added. */
|
|
3
|
+
/** Why the router declined the plan or found no transit route. `LOCATION_NOT_FOUND`: a stop id resolves to no stop or station (`inputField` `FROM`, `TO` or `VIA`), or a coordinate has no street near enough to link to (`FROM` or `TO`). `OUTSIDE_BOUNDS`: a coordinate lies outside the area the router covers (`FROM` or `TO`). `NO_STOPS_IN_RANGE`: no stop is in walking range of the origin (`FROM`) or the destination (`TO`). `NO_TRANSIT_CONNECTION`: the origin and the destination lie in parts of the transit network that no trip connects (`inputField` null). `WALKING_BETTER_THAN_TRANSIT`: the origin and destination are the same stop, a station and one of its own platforms, identical coordinates or coordinates that snap to the same street point, or every transit itinerary the search found was dropped as worse than walking (`inputField` null). `NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW`: the transit search ran but found no transit itinerary leaving inside the search window (`DATE_TIME`). `NO_DIRECT_MODE_CONNECTION`: a direct-only plan (`modes.directOnly`) found no walk (`inputField` null). `OUTSIDE_SERVICE_PERIOD`: the date is outside what the feed covers (`DATE_TIME`). New codes may be added. */
|
|
4
4
|
export interface RoutingError {
|
|
5
5
|
code: RoutingErrorCode;
|
|
6
6
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,
|
|
1
|
+
{"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,orCAAorC;AACprC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | (string & {});
|
|
1
|
+
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_DIRECT_MODE_CONNECTION' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW' | 'OUTSIDE_BOUNDS' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | (string & {});
|
|
2
2
|
//# sourceMappingURL=RoutingErrorCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingErrorCode.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingErrorCode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,6BAA6B,GAC7B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"RoutingErrorCode.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingErrorCode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,2BAA2B,GAC3B,mBAAmB,GACnB,uBAAuB,GACvB,wCAAwC,GACxC,gBAAgB,GAChB,wBAAwB,GACxB,6BAA6B,GAC7B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -4,6 +4,8 @@ import type { StopDeparturesTrip } from './StopDeparturesTrip.ts';
|
|
|
4
4
|
export interface StopDeparturesStoptime {
|
|
5
5
|
/** Unix seconds at the start of the trip's service day; it plus a seconds field gives that time as Unix seconds. */
|
|
6
6
|
serviceDay: number;
|
|
7
|
+
/** The GTFS service date of the departure's trip, `YYYY-MM-DD`, as `Leg.serviceDate`. For a departure past 24:00 of its service day, it is the day before the departure's calendar date. */
|
|
8
|
+
serviceDate: string;
|
|
7
9
|
/** Seconds after `serviceDay`. */
|
|
8
10
|
scheduledDeparture: number;
|
|
9
11
|
/** Seconds after `serviceDay`, realtime merged in; the schedule when there is none. */
|
|
@@ -11,7 +13,7 @@ export interface StopDeparturesStoptime {
|
|
|
11
13
|
/** True when `realtimeDeparture` comes from realtime. */
|
|
12
14
|
realtime: boolean;
|
|
13
15
|
realtimeState: RealtimeState;
|
|
14
|
-
/**
|
|
16
|
+
/** Seconds of delay at the requested `reliability`: that level's percentile of the trip's recorded delay at this stop on the service date's day type, from the environment's realtime history. Never below 0. At each level, no trip arrives at a stop, delay applied, before an earlier trip of the same pattern does. Null when `reliability` is omitted, when the trip has live realtime, a canceled trip included, or when there is no history. */
|
|
15
17
|
typicalDelay: number | null;
|
|
16
18
|
/** Null when the feed has none. */
|
|
17
19
|
headsign: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StopDeparturesStoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"StopDeparturesStoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,4LAA4L;IAC5L,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,ubAAub;IACvb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gFAAgF;IAChF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gGAAgG;IAChG,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;CAC1B"}
|
|
@@ -14,7 +14,7 @@ export interface Stoptime {
|
|
|
14
14
|
/** True when `realtimeArrival` and `realtimeDeparture` come from realtime. */
|
|
15
15
|
realtime: boolean;
|
|
16
16
|
realtimeState: RealtimeState;
|
|
17
|
-
/**
|
|
17
|
+
/** Seconds of delay at the requested `reliability`: that level's percentile of the trip's recorded delay at this stop on the service date's day type, from the environment's realtime history. Never below 0. At each level, no trip arrives at a stop, delay applied, before an earlier trip of the same pattern does. Null when `reliability` is omitted, when the trip has live realtime, a canceled trip included, or when there is no history. */
|
|
18
18
|
typicalDelay: number | null;
|
|
19
19
|
/** The stop time's position in the trip: increasing along it, not necessarily from 0 or consecutive. Realtime that adds or removes stops can change it. */
|
|
20
20
|
stopPosition: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"Stoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,ubAAub;IACvb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,2JAA2J;IAC3J,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gKAAgK;IAChK,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,QAAQ,CAAC;CAChB"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { Reliability } from './Reliability.ts';
|
|
1
2
|
/** POST body for `/routing/v1/trip`. A key not listed here is a 400 `<key> is not allowed`, whatever its value, null included. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
2
3
|
export interface TripRequest {
|
|
3
4
|
/** Feed-prefixed trip id (`<feedId>:<id>`). A bare or foreign-prefixed id resolves to nothing, and `trip` is null. */
|
|
4
5
|
id: string;
|
|
5
|
-
/** The service date, `YYYY-MM-DD` (`YYYYMMDD` also works). Absent
|
|
6
|
-
serviceDate
|
|
6
|
+
/** The trip's GTFS service date, `YYYY-MM-DD` (`YYYYMMDD` also works). Absent or null is a 400 `serviceDate is required`, and a value that is not a real date a 400 `serviceDate is invalid`. */
|
|
7
|
+
serviceDate: string;
|
|
8
|
+
/** The level `typicalDelay` is given at; the times do not depend on it. Omitted or null, `typicalDelay` is null. A value outside `Reliability` is a 400 `reliability is invalid`. */
|
|
9
|
+
reliability?: Reliability;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=TripRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripRequest.ts"],"names":[],"mappings":"AAAA,qOAAqO;AACrO,MAAM,WAAW,WAAW;IAC1B,sHAAsH;IACtH,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"TripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,qOAAqO;AACrO,MAAM,WAAW,WAAW;IAC1B,sHAAsH;IACtH,EAAE,EAAE,MAAM,CAAC;IACX,iMAAiM;IACjM,WAAW,EAAE,MAAM,CAAC;IACpB,qLAAqL;IACrL,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Walking preferences. */
|
|
2
2
|
export interface WalkPreferencesInput {
|
|
3
|
-
/** Walking speed on flat ground in metres per second, at least 0.1 (0.1 included); rejected, never clamped. */
|
|
3
|
+
/** Walking speed on flat ground in metres per second, at least 0.1 (0.1 included); rejected, never clamped. Rounded to a step of 0.05 below 2, 0.1 below 10 and 1 from 10, ties to even. */
|
|
4
4
|
speed?: number;
|
|
5
|
-
/** How much worse walking is than riding for the same time, a multiplier from 0.1 to 100000; rejected, never clamped. */
|
|
5
|
+
/** How much worse walking is than riding for the same time, a multiplier from 0.1 to 100000; rejected, never clamped. Rounded to a step of 0.1 below 3, 0.5 below 10 and 1 from 10, ties to even. */
|
|
6
6
|
reluctance?: number;
|
|
7
7
|
/** Generalized cost added for each boarding, an integer from 0 to 1000000; rejected, never clamped. */
|
|
8
8
|
boardCost?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalkPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/WalkPreferencesInput.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,WAAW,oBAAoB;IACnC
|
|
1
|
+
{"version":3,"file":"WalkPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/WalkPreferencesInput.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,WAAW,oBAAoB;IACnC,4LAA4L;IAC5L,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qMAAqM;IACrM,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uGAAuG;IACvG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Wheelchair preferences. */
|
|
2
2
|
export interface WheelchairPreferencesInput {
|
|
3
|
-
/**
|
|
3
|
+
/** Plan for a wheelchair user: ride only trips the feed marks wheelchair accessible, board and alight only at stops it marks accessible (no information counts as not accessible), and walk strongly avoiding steps and ways mapped as not wheelchair accessible. The feed's accessibility data limits what this guarantees. */
|
|
4
4
|
enabled?: boolean;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=WheelchairPreferencesInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WheelchairPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/WheelchairPreferencesInput.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,MAAM,WAAW,0BAA0B;IACzC
|
|
1
|
+
{"version":3,"file":"WheelchairPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/WheelchairPreferencesInput.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,MAAM,WAAW,0BAA0B;IACzC,gUAAgU;IAChU,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -6,6 +6,8 @@ export type { DepartureBoard } from './DepartureBoard.ts';
|
|
|
6
6
|
export type { DeparturesRequest } from './DeparturesRequest.ts';
|
|
7
7
|
export type { DeparturesResponse } from './DeparturesResponse.ts';
|
|
8
8
|
export type { ErrorResponse } from './ErrorResponse.ts';
|
|
9
|
+
export type { EstimatedDelay } from './EstimatedDelay.ts';
|
|
10
|
+
export type { EstimatedDelaysResponse } from './EstimatedDelaysResponse.ts';
|
|
9
11
|
export type { Geometry } from './Geometry.ts';
|
|
10
12
|
export type { InputField } from './InputField.ts';
|
|
11
13
|
export type { Itinerary } from './Itinerary.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,YAAY,EAAE,OAAO,EAAE,MAA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+
export declare const CONTRACT_VERSION = "1.6";
|
|
2
2
|
//# sourceMappingURL=contractVersion.d.ts.map
|
package/dist/contractVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const CONTRACT_VERSION = '1.
|
|
1
|
+
export const CONTRACT_VERSION = '1.6';
|
|
2
2
|
//# sourceMappingURL=contractVersion.js.map
|
package/dist/enums.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export type WheelchairBoarding = 'POSSIBLE' | 'NOT_POSSIBLE' | 'UNKNOWN';
|
|
|
3
3
|
export type BikesAllowed = 'ALLOWED' | 'NOT_ALLOWED' | 'UNKNOWN';
|
|
4
4
|
export type OccupancyStatus = 'EMPTY' | 'MANY_SEATS_AVAILABLE' | 'FEW_SEATS_AVAILABLE' | 'STANDING_ROOM_ONLY' | 'CRUSHED_STANDING_ROOM_ONLY' | 'FULL' | 'NOT_ACCEPTING_PASSENGERS' | 'NOT_BOARDABLE' | 'UNKNOWN';
|
|
5
5
|
export type RealtimeState = 'ADDED' | 'CANCELED' | 'MODIFIED' | 'SCHEDULED' | 'UPDATED' | 'UNKNOWN';
|
|
6
|
-
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | 'UNKNOWN';
|
|
6
|
+
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_DIRECT_MODE_CONNECTION' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW' | 'OUTSIDE_BOUNDS' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | 'UNKNOWN';
|
|
7
7
|
export type InputField = 'DATE_TIME' | 'FROM' | 'TO' | 'VIA' | 'UNKNOWN';
|
|
8
|
-
/** Delay
|
|
8
|
+
/** Delay level, for planning (`plan`) and for `typicalDelaySeconds` (`departures`, `trip`): the p50 (`STANDARD`), p70 (`SAFE`) or p90 (`VERY_SAFE`) of the trip's recorded delay. */
|
|
9
9
|
export type Reliability = 'STANDARD' | 'SAFE' | 'VERY_SAFE';
|
|
10
10
|
export declare function transitModeFromWire(raw: string): TransitMode;
|
|
11
11
|
export declare function transitModeFromWire(raw: string | null | undefined): TransitMode | null;
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,SAAS,GACT,KAAK,GACL,WAAW,GACX,KAAK,GACL,SAAS,GACT,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,MAAM,GACN,SAAS,GACT,cAAc,GACd,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,YAAY,GACZ,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,cAAc,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAEjE,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,sBAAsB,GACtB,qBAAqB,GACrB,oBAAoB,GACpB,4BAA4B,GAC5B,MAAM,GACN,0BAA0B,GAC1B,eAAe,GACf,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpG,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,6BAA6B,GAC7B,SAAS,CAAC;AAEd,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI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AAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC;AAKxF,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;AAClE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAAC;AAK5F,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,gBAAgB,CAEzF;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,CAEpF;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,kBAAkB,GAAG,IAAI,CAE5F;AAED,oHAAoH;AACpH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,kBAAkB,GAAG,IAAI,CAG5F;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,GAAG,IAAI,CAExF;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,GAAG,IAAI,CAGxF"}
|
package/dist/enums.js
CHANGED
|
@@ -13,7 +13,8 @@ const WHEELCHAIR_BOARDING = { POSSIBLE: true, NOT_POSSIBLE: true };
|
|
|
13
13
|
const BIKES_ALLOWED = { ALLOWED: true, NOT_ALLOWED: true };
|
|
14
14
|
const REALTIME_STATES = { ADDED: true, CANCELED: true, MODIFIED: true, SCHEDULED: true, UPDATED: true };
|
|
15
15
|
const ROUTING_ERROR_CODES = {
|
|
16
|
-
LOCATION_NOT_FOUND: true,
|
|
16
|
+
LOCATION_NOT_FOUND: true, NO_DIRECT_MODE_CONNECTION: true, NO_STOPS_IN_RANGE: true, NO_TRANSIT_CONNECTION: true,
|
|
17
|
+
NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW: true, OUTSIDE_BOUNDS: true, OUTSIDE_SERVICE_PERIOD: true,
|
|
17
18
|
WALKING_BETTER_THAN_TRANSIT: true,
|
|
18
19
|
};
|
|
19
20
|
const INPUT_FIELDS = { DATE_TIME: true, FROM: true, TO: true, VIA: true };
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,6DAA6D;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,6DAA6D;AA+D7D,MAAM,aAAa,GAAuB;IACxC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI;IAC7G,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IACxG,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CACrH,CAAC;AAEF,MAAM,kBAAkB,GAA2B;IACjD,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI;IAC5F,0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AAI,CAAC;IAC5D,OAAO,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { SpiderError, SpiderErrorCode } from './errors.ts';
|
|
|
5
5
|
export { Location, ViaLocation } from './location.ts';
|
|
6
6
|
export type { TransitMode, WheelchairBoarding, BikesAllowed, OccupancyStatus, RealtimeState, RoutingErrorCode, InputField, Reliability, } from './enums.ts';
|
|
7
7
|
export { SpiderRouting } from './routing.ts';
|
|
8
|
-
export type { Route, RouteEdge, Itinerary, Leg, LatLon, RoutePageInfo, RoutingError, Departure, TripDetails, TripStop, PlanOptions, PlanStreamRequestOptions, PlanStreamEvent, DeparturesOptions, } from './routing.ts';
|
|
8
|
+
export type { Route, RouteEdge, Itinerary, Leg, LatLon, RoutePageInfo, RoutingError, Departure, TripDetails, TripStop, EstimatedDelays, PlanOptions, PlanStreamRequestOptions, PlanStreamEvent, DeparturesOptions, } from './routing.ts';
|
|
9
9
|
export { SpiderStops } from './stops.ts';
|
|
10
10
|
export type { Stop, StopFilter, GeoPoint, GeoBoundingBox } from './stops.ts';
|
|
11
11
|
export { SpiderRealtime, delayFor } from './realtime.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClG,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,Y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,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EACV,KAAK,EACL,SAAS,EACT,SAAS,EACT,GAAG,EACH,MAAM,EACN,aAAa,EACb,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,eAAe,EACf,WAAW,EACX,wBAAwB,EACxB,eAAe,EACf,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,YAAY,EACV,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACxF,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAWtD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAWtD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAkB7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAczD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/location.d.ts
CHANGED
|
@@ -19,7 +19,10 @@ export type ViaLocation = {
|
|
|
19
19
|
readonly minimumWaitSeconds: number;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* A point the itinerary must pass
|
|
22
|
+
* A point the itinerary must pass, in the order given; visits and pass-throughs may be mixed. A pass-through is
|
|
23
|
+
* passed on board, alighting there, or starting there: a stop where the vehicle does not let passengers off is not
|
|
24
|
+
* passed on board, and walking there to board is not a pass. A visit alights there and boards again after the wait.
|
|
25
|
+
* How many a request may carry is an environment setting. Each pass-through takes
|
|
23
26
|
* 1 to 10 stop ids, else the request fails as `bad_request` on `via`. A visit is to a stop and waits 0 to 3600
|
|
24
27
|
* seconds: a coordinate fails as `bad_request` on `via` (`via is invalid`), and a wait outside that range on
|
|
25
28
|
* `via.visit.minimumWaitTime`.
|
package/dist/location.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACtF;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,E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G,WAAW;+BAG9B,QAAQ,kCAA2B,WAAW;CAGtD,CAAC"}
|
package/dist/location.js
CHANGED
|
@@ -7,7 +7,10 @@ export const Location = {
|
|
|
7
7
|
},
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* A point the itinerary must pass
|
|
10
|
+
* A point the itinerary must pass, in the order given; visits and pass-throughs may be mixed. A pass-through is
|
|
11
|
+
* passed on board, alighting there, or starting there: a stop where the vehicle does not let passengers off is not
|
|
12
|
+
* passed on board, and walking there to board is not a pass. A visit alights there and boards again after the wait.
|
|
13
|
+
* How many a request may carry is an environment setting. Each pass-through takes
|
|
11
14
|
* 1 to 10 stop ids, else the request fails as `bad_request` on `via`. A visit is to a stop and waits 0 to 3600
|
|
12
15
|
* seconds: a coordinate fails as `bad_request` on `via` (`via is invalid`), and a wait outside that range on
|
|
13
16
|
* `via.visit.minimumWaitTime`.
|