@motis-project/motis-client 2.0.84 → 2.0.92

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/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  TripInfoSchema,
37
37
  TripSegmentSchema,
38
38
  VertexTypeSchema
39
- } from './chunk-CAW6R2LI.js';
39
+ } from './chunk-RM52T2X5.js';
40
40
  import {
41
41
  client,
42
42
  geocode,
@@ -247,7 +247,7 @@ declare const PedestrianProfileSchema: {
247
247
  readonly enum: readonly ['FOOT', 'WHEELCHAIR'];
248
248
  };
249
249
  declare const ModeSchema: {
250
- readonly description: '# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,SUBWAY,TRAM,BUS,FERRY,AIRPLANE,COACH`\n - `TRAM`: trams\n - `SUBWAY`: subway trains\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE_RAIL,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`\n - `METRO`: metro trains \n - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)\n - `LONG_DISTANCE`: long distance inter city trains\n - `NIGHT_RAIL`: long distance night trains\n - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster\n - `REGIONAL_RAIL`: regional train\n - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).\n - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `AREAL_LIFT`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.\n';
250
+ readonly description: '# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,SUBWAY,TRAM,BUS,FERRY,AIRPLANE,COACH`\n - `TRAM`: trams\n - `SUBWAY`: subway trains\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`\n - `METRO`: metro trains \n - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)\n - `LONG_DISTANCE`: long distance inter city trains\n - `NIGHT_RAIL`: long distance night trains\n - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster\n - `REGIONAL_RAIL`: regional train\n - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).\n - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `AREAL_LIFT`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.\n';
251
251
  readonly type: 'string';
252
252
  readonly enum: readonly [
253
253
  'WALK',
@@ -255,6 +255,7 @@ declare const ModeSchema: {
255
255
  'RENTAL',
256
256
  'CAR',
257
257
  'CAR_PARKING',
258
+ 'CAR_DROPOFF',
258
259
  'ODM',
259
260
  'FLEX',
260
261
  'TRANSIT',
@@ -435,6 +436,7 @@ declare const StopTimeSchema: {
435
436
  'routeShortName',
436
437
  'pickupDropoffType',
437
438
  'cancelled',
439
+ 'tripCancelled',
438
440
  'source'
439
441
  ];
440
442
  readonly properties: {
@@ -480,7 +482,11 @@ declare const StopTimeSchema: {
480
482
  readonly $ref: '#/components/schemas/PickupDropoffType';
481
483
  };
482
484
  readonly cancelled: {
483
- readonly description: 'Whether the departure/arrival is cancelled due to the realtime situation.';
485
+ readonly description: 'Whether the departure/arrival is cancelled due to the realtime situation (either because the stop is skipped or because the entire trip is cancelled).';
486
+ readonly type: 'boolean';
487
+ };
488
+ readonly tripCancelled: {
489
+ readonly description: 'Whether the entire trip is cancelled due to the realtime situation.';
484
490
  readonly type: 'boolean';
485
491
  };
486
492
  readonly source: {
@@ -36,7 +36,7 @@ import {
36
36
  TripInfoSchema,
37
37
  TripSegmentSchema,
38
38
  VertexTypeSchema
39
- } from './chunk-CAW6R2LI.js';
39
+ } from './chunk-RM52T2X5.js';
40
40
  export {
41
41
  AlertCauseSchema,
42
42
  AlertEffectSchema,
@@ -254,6 +254,7 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
254
254
  * - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
255
255
  * - `CAR`
256
256
  * - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
257
+ * - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.
257
258
  * - `ODM` on-demand taxis from the Prima+ÖV Project
258
259
  * - `FLEX` flexible transports
259
260
  *
@@ -266,7 +267,7 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
266
267
  * - `AIRPLANE`: airline flights
267
268
  * - `BUS`: short distance buses (does not include `COACH`)
268
269
  * - `COACH`: long distance buses (does not include `BUS`)
269
- * - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE_RAIL,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`
270
+ * - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`
270
271
  * - `METRO`: metro trains
271
272
  * - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)
272
273
  * - `LONG_DISTANCE`: long distance inter city trains
@@ -284,6 +285,7 @@ type Mode =
284
285
  | 'RENTAL'
285
286
  | 'CAR'
286
287
  | 'CAR_PARKING'
288
+ | 'CAR_DROPOFF'
287
289
  | 'ODM'
288
290
  | 'FLEX'
289
291
  | 'TRANSIT'
@@ -474,9 +476,13 @@ type StopTime = {
474
476
  */
475
477
  pickupDropoffType: PickupDropoffType;
476
478
  /**
477
- * Whether the departure/arrival is cancelled due to the realtime situation.
479
+ * Whether the departure/arrival is cancelled due to the realtime situation (either because the stop is skipped or because the entire trip is cancelled).
478
480
  */
479
481
  cancelled: boolean;
482
+ /**
483
+ * Whether the entire trip is cancelled due to the realtime situation.
484
+ */
485
+ tripCancelled: boolean;
480
486
  /**
481
487
  * Filename and line number where this trip is from
482
488
  */
@@ -1090,6 +1096,16 @@ type PlanData = {
1090
1096
  *
1091
1097
  */
1092
1098
  ignorePreTransitRentalReturnConstraints?: boolean;
1099
+ /**
1100
+ * Optional. Default is `true`.
1101
+ *
1102
+ * Controls if a journey section with stay-seated transfers is returned:
1103
+ * - `joinInterlinedLegs=false`: as several legs (full information about all trip numbers, headsigns, etc.).
1104
+ * Legs that do not require a transfer (stay-seated transfer) are marked with `interlineWithPreviousLeg=true`.
1105
+ * - `joinInterlinedLegs=true` (default behavior): as only one joined leg containing all stops
1106
+ *
1107
+ */
1108
+ joinInterlinedLegs?: boolean;
1093
1109
  /**
1094
1110
  * Optional. Experimental. Number of luggage pieces; base unit: airline cabin luggage (e.g. for ODM or price calculation)
1095
1111
  *
@@ -1378,6 +1394,10 @@ type PlanData = {
1378
1394
  * Optional. Experimental. If set to true, the response will contain fare information.
1379
1395
  */
1380
1396
  withFares?: boolean;
1397
+ /**
1398
+ * Optional. Include intermediate stops where passengers can not alight/board according to schedule.
1399
+ */
1400
+ withScheduledSkippedStops?: boolean;
1381
1401
  };
1382
1402
  };
1383
1403
  type PlanResponse = {
@@ -1702,6 +1722,10 @@ type TripData = {
1702
1722
  * trip identifier (e.g. from an itinerary leg or stop event)
1703
1723
  */
1704
1724
  tripId: string;
1725
+ /**
1726
+ * Optional. Include intermediate stops where passengers can not alight/board according to schedule.
1727
+ */
1728
+ withScheduledSkippedStops?: boolean;
1705
1729
  };
1706
1730
  };
1707
1731
  type TripResponse = Itinerary;
@@ -1775,6 +1799,10 @@ type StoptimesData = {
1775
1799
  *
1776
1800
  */
1777
1801
  time?: string;
1802
+ /**
1803
+ * Optional. Include stoptimes where passengers can not alight/board according to schedule.
1804
+ */
1805
+ withScheduledSkippedStops?: boolean;
1778
1806
  };
1779
1807
  };
1780
1808
  type StoptimesResponse = {
@@ -1782,6 +1810,10 @@ type StoptimesResponse = {
1782
1810
  * list of stop times
1783
1811
  */
1784
1812
  stopTimes: Array<StopTime>;
1813
+ /**
1814
+ * metadata of the requested stop
1815
+ */
1816
+ place: Place;
1785
1817
  /**
1786
1818
  * Use the cursor to get the previous page of results. Insert the cursor into the request and post it to get the previous page.
1787
1819
  * The previous page is a set of stop times BEFORE the first stop time in the result.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motis-project/motis-client",
3
- "version": "2.0.84",
3
+ "version": "2.0.92",
4
4
  "description": "A JS client for the MOTIS API.",
5
5
  "public": true,
6
6
  "main": "dist/index.js",