@motis-project/motis-client 2.7.6 → 2.8.1
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.
|
@@ -42,6 +42,10 @@ var AlertSchema = {
|
|
|
42
42
|
type: "object",
|
|
43
43
|
required: ["headerText", "descriptionText"],
|
|
44
44
|
properties: {
|
|
45
|
+
code: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Attribute or notice code (e.g. for HRDF or NeTEx)"
|
|
48
|
+
},
|
|
45
49
|
communicationPeriod: {
|
|
46
50
|
description: `Time when the alert should be shown to the user.
|
|
47
51
|
If missing, the alert will be shown as long as it appears in the feed.
|
|
@@ -215,11 +219,12 @@ var ModeSchema = {
|
|
|
215
219
|
- \`NIGHT_RAIL\`: long distance night trains
|
|
216
220
|
- \`REGIONAL_FAST_RAIL\`: regional express routes that skip low traffic stops to be faster
|
|
217
221
|
- \`REGIONAL_RAIL\`: regional train
|
|
218
|
-
- \`CABLE_CAR\`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).
|
|
219
222
|
- \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
|
|
220
223
|
- \`AERIAL_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.
|
|
224
|
+
- \`ODM\`: demand responsive transport
|
|
221
225
|
- \`AREAL_LIFT\`: deprecated
|
|
222
226
|
- \`METRO\`: deprecated
|
|
227
|
+
- \`CABLE_CAR\`: deprecated
|
|
223
228
|
`,
|
|
224
229
|
type: "string",
|
|
225
230
|
enum: ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "RIDE_SHARING", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "SUBURBAN", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "CABLE_CAR", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO"]
|
package/dist/index.js
CHANGED
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ declare const AlertSchema: {
|
|
|
35
35
|
readonly type: "object";
|
|
36
36
|
readonly required: readonly ["headerText", "descriptionText"];
|
|
37
37
|
readonly properties: {
|
|
38
|
+
readonly code: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly description: "Attribute or notice code (e.g. for HRDF or NeTEx)";
|
|
41
|
+
};
|
|
38
42
|
readonly communicationPeriod: {
|
|
39
43
|
readonly description: "Time when the alert should be shown to the user.\nIf missing, the alert will be shown as long as it appears in the feed.\nIf multiple ranges are given, the alert will be shown during all of them.\n";
|
|
40
44
|
readonly type: "array";
|
|
@@ -153,7 +157,7 @@ declare const LocationTypeSchema: {
|
|
|
153
157
|
readonly enum: readonly ["ADDRESS", "PLACE", "STOP"];
|
|
154
158
|
};
|
|
155
159
|
declare const ModeSchema: {
|
|
156
|
-
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 - `RIDE_SHARING` ride sharing from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)\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,SUBURBAN,SUBWAY`\n - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)\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 - `
|
|
160
|
+
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 - `RIDE_SHARING` ride sharing from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)\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,SUBURBAN,SUBWAY`\n - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)\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 - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `AERIAL_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 - `ODM`: demand responsive transport\n - `AREAL_LIFT`: deprecated\n - `METRO`: deprecated\n - `CABLE_CAR`: deprecated\n";
|
|
157
161
|
readonly type: "string";
|
|
158
162
|
readonly enum: readonly ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "RIDE_SHARING", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "SUBURBAN", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "CABLE_CAR", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO"];
|
|
159
163
|
};
|
package/dist/schemas.gen.js
CHANGED
package/dist/services.gen.d.ts
CHANGED
|
@@ -61,19 +61,23 @@ declare const levels: <ThrowOnError extends boolean = false>(options: Options<Le
|
|
|
61
61
|
* Get a list of rental providers or all rental stations and vehicles for
|
|
62
62
|
* a map section or provider
|
|
63
63
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
64
|
+
* Various options to filter the providers, stations and vehicles are
|
|
65
|
+
* available. If none of these filters are provided, a list of all
|
|
66
|
+
* available rental providers is returned without any station, vehicle or
|
|
67
|
+
* zone data.
|
|
68
|
+
*
|
|
69
|
+
* At least one of the following filters must be provided to retrieve
|
|
70
|
+
* station, vehicle and zone data:
|
|
69
71
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
72
|
+
* - A bounding box defined by the `min` and `max` parameters
|
|
73
|
+
* - A circle defined by the `point` and `radius` parameters
|
|
74
|
+
* - A list of provider groups via the `providerGroups` parameter
|
|
75
|
+
* - A list of providers via the `providers` parameter
|
|
73
76
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
+
* Only data that matches all the provided filters is returned.
|
|
78
|
+
*
|
|
79
|
+
* Provide the `withProviders=false` parameter to retrieve only provider
|
|
80
|
+
* groups if detailed feed information is not required.
|
|
77
81
|
*
|
|
78
82
|
*/
|
|
79
83
|
declare const rentals: <ThrowOnError extends boolean = false>(options?: Options<RentalsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RentalsResponse, Error, ThrowOnError>;
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ type TimeRange = {
|
|
|
33
33
|
* An alert, indicating some sort of incident in the public transit network.
|
|
34
34
|
*/
|
|
35
35
|
type Alert = {
|
|
36
|
+
/**
|
|
37
|
+
* Attribute or notice code (e.g. for HRDF or NeTEx)
|
|
38
|
+
*/
|
|
39
|
+
code?: string;
|
|
36
40
|
/**
|
|
37
41
|
* Time when the alert should be shown to the user.
|
|
38
42
|
* If missing, the alert will be shown as long as it appears in the feed.
|
|
@@ -189,11 +193,12 @@ type LocationType = 'ADDRESS' | 'PLACE' | 'STOP';
|
|
|
189
193
|
* - `NIGHT_RAIL`: long distance night trains
|
|
190
194
|
* - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster
|
|
191
195
|
* - `REGIONAL_RAIL`: regional train
|
|
192
|
-
* - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).
|
|
193
196
|
* - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.
|
|
194
197
|
* - `AERIAL_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.
|
|
198
|
+
* - `ODM`: demand responsive transport
|
|
195
199
|
* - `AREAL_LIFT`: deprecated
|
|
196
200
|
* - `METRO`: deprecated
|
|
201
|
+
* - `CABLE_CAR`: deprecated
|
|
197
202
|
*
|
|
198
203
|
*/
|
|
199
204
|
type Mode = 'WALK' | 'BIKE' | 'RENTAL' | 'CAR' | 'CAR_PARKING' | 'CAR_DROPOFF' | 'ODM' | 'RIDE_SHARING' | 'FLEX' | 'TRANSIT' | 'TRAM' | 'SUBWAY' | 'FERRY' | 'AIRPLANE' | 'SUBURBAN' | 'BUS' | 'COACH' | 'RAIL' | 'HIGHSPEED_RAIL' | 'LONG_DISTANCE' | 'NIGHT_RAIL' | 'REGIONAL_FAST_RAIL' | 'REGIONAL_RAIL' | 'CABLE_CAR' | 'FUNICULAR' | 'AERIAL_LIFT' | 'OTHER' | 'AREAL_LIFT' | 'METRO';
|
|
@@ -2381,6 +2386,12 @@ type TripsData = {
|
|
|
2381
2386
|
* end if the time window
|
|
2382
2387
|
*/
|
|
2383
2388
|
endTime: string;
|
|
2389
|
+
/**
|
|
2390
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
2391
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
2392
|
+
*
|
|
2393
|
+
*/
|
|
2394
|
+
language?: Array<(string)>;
|
|
2384
2395
|
/**
|
|
2385
2396
|
* latitude,longitude pair of the upper left coordinate
|
|
2386
2397
|
*/
|
|
@@ -2419,6 +2430,12 @@ type InitialResponse = ({
|
|
|
2419
2430
|
type InitialError = (Error);
|
|
2420
2431
|
type StopsData = {
|
|
2421
2432
|
query: {
|
|
2433
|
+
/**
|
|
2434
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
2435
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
2436
|
+
*
|
|
2437
|
+
*/
|
|
2438
|
+
language?: Array<(string)>;
|
|
2422
2439
|
/**
|
|
2423
2440
|
* latitude,longitude pair of the upper left coordinate
|
|
2424
2441
|
*/
|
|
@@ -2455,6 +2472,17 @@ type RentalsData = {
|
|
|
2455
2472
|
* latitude,longitude pair of the lower right coordinate
|
|
2456
2473
|
*/
|
|
2457
2474
|
min?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* \`latitude,longitude[,level]\` tuple with
|
|
2477
|
+
* - latitude and longitude in degrees
|
|
2478
|
+
* - (optional) level: the OSM level (ignored, for compatibility reasons)
|
|
2479
|
+
*
|
|
2480
|
+
* OR
|
|
2481
|
+
*
|
|
2482
|
+
* stop id
|
|
2483
|
+
*
|
|
2484
|
+
*/
|
|
2485
|
+
point?: string;
|
|
2458
2486
|
/**
|
|
2459
2487
|
* A list of rental provider groups to return.
|
|
2460
2488
|
* If both `providerGroups` and `providers` are empty/not specified,
|
|
@@ -2469,6 +2497,11 @@ type RentalsData = {
|
|
|
2469
2497
|
*
|
|
2470
2498
|
*/
|
|
2471
2499
|
providers?: Array<(string)>;
|
|
2500
|
+
/**
|
|
2501
|
+
* Radius around `point` in meters.
|
|
2502
|
+
*
|
|
2503
|
+
*/
|
|
2504
|
+
radius?: number;
|
|
2472
2505
|
/**
|
|
2473
2506
|
* Optional. Include providers in output. If false, only provider
|
|
2474
2507
|
* groups are returned.
|