@motis-project/motis-client 2.0.92 → 2.1.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.
- package/dist/chunk-7PIP6KRC.js +1161 -0
- package/dist/chunk-IHFNO6R3.js +62 -62
- package/dist/chunk-RM52T2X5.js +917 -1056
- package/dist/index.d.ts +3 -128
- package/dist/index.js +103 -103
- package/dist/schemas.gen.d.ts +880 -1051
- package/dist/schemas.gen.js +75 -75
- package/dist/services.gen.d.ts +17 -85
- package/dist/services.gen.js +27 -27
- package/dist/types.gen.d.ts +1693 -1790
- package/dist/types.gen.js +1 -1
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cause of this alert.
|
|
3
3
|
*/
|
|
4
|
-
type AlertCause =
|
|
5
|
-
| 'UNKNOWN_CAUSE'
|
|
6
|
-
| 'OTHER_CAUSE'
|
|
7
|
-
| 'TECHNICAL_PROBLEM'
|
|
8
|
-
| 'STRIKE'
|
|
9
|
-
| 'DEMONSTRATION'
|
|
10
|
-
| 'ACCIDENT'
|
|
11
|
-
| 'HOLIDAY'
|
|
12
|
-
| 'WEATHER'
|
|
13
|
-
| 'MAINTENANCE'
|
|
14
|
-
| 'CONSTRUCTION'
|
|
15
|
-
| 'POLICE_ACTIVITY'
|
|
16
|
-
| 'MEDICAL_EMERGENCY';
|
|
4
|
+
type AlertCause = 'UNKNOWN_CAUSE' | 'OTHER_CAUSE' | 'TECHNICAL_PROBLEM' | 'STRIKE' | 'DEMONSTRATION' | 'ACCIDENT' | 'HOLIDAY' | 'WEATHER' | 'MAINTENANCE' | 'CONSTRUCTION' | 'POLICE_ACTIVITY' | 'MEDICAL_EMERGENCY';
|
|
17
5
|
/**
|
|
18
6
|
* The effect of this problem on the affected entity.
|
|
19
7
|
*/
|
|
20
|
-
type AlertEffect =
|
|
21
|
-
| 'NO_SERVICE'
|
|
22
|
-
| 'REDUCED_SERVICE'
|
|
23
|
-
| 'SIGNIFICANT_DELAYS'
|
|
24
|
-
| 'DETOUR'
|
|
25
|
-
| 'ADDITIONAL_SERVICE'
|
|
26
|
-
| 'MODIFIED_SERVICE'
|
|
27
|
-
| 'OTHER_EFFECT'
|
|
28
|
-
| 'UNKNOWN_EFFECT'
|
|
29
|
-
| 'STOP_MOVED'
|
|
30
|
-
| 'NO_EFFECT'
|
|
31
|
-
| 'ACCESSIBILITY_ISSUE';
|
|
8
|
+
type AlertEffect = 'NO_SERVICE' | 'REDUCED_SERVICE' | 'SIGNIFICANT_DELAYS' | 'DETOUR' | 'ADDITIONAL_SERVICE' | 'MODIFIED_SERVICE' | 'OTHER_EFFECT' | 'UNKNOWN_EFFECT' | 'STOP_MOVED' | 'NO_EFFECT' | 'ACCESSIBILITY_ISSUE';
|
|
32
9
|
/**
|
|
33
10
|
* The severity of the alert.
|
|
34
11
|
*/
|
|
@@ -39,143 +16,146 @@ type AlertSeverityLevel = 'UNKNOWN_SEVERITY' | 'INFO' | 'WARNING' | 'SEVERE';
|
|
|
39
16
|
*
|
|
40
17
|
*/
|
|
41
18
|
type TimeRange = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
19
|
+
/**
|
|
20
|
+
* If missing, the interval starts at minus infinity.
|
|
21
|
+
* If a TimeRange is provided, either start or end must be provided - both fields cannot be empty.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
start?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If missing, the interval ends at plus infinity.
|
|
27
|
+
* If a TimeRange is provided, either start or end must be provided - both fields cannot be empty.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
end?: string;
|
|
54
31
|
};
|
|
55
32
|
/**
|
|
56
33
|
* An alert, indicating some sort of incident in the public transit network.
|
|
57
34
|
*/
|
|
58
35
|
type Alert = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Time when the alert should be shown to the user.
|
|
38
|
+
* If missing, the alert will be shown as long as it appears in the feed.
|
|
39
|
+
* If multiple ranges are given, the alert will be shown during all of them.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
communicationPeriod?: Array<TimeRange>;
|
|
43
|
+
/**
|
|
44
|
+
* Time when the services are affected by the disruption mentioned in the alert.
|
|
45
|
+
*/
|
|
46
|
+
impactPeriod?: Array<TimeRange>;
|
|
47
|
+
cause?: AlertCause;
|
|
48
|
+
/**
|
|
49
|
+
* Description of the cause of the alert that allows for agency-specific language;
|
|
50
|
+
* more specific than the Cause.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
causeDetail?: string;
|
|
54
|
+
effect?: AlertEffect;
|
|
55
|
+
/**
|
|
56
|
+
* Description of the effect of the alert that allows for agency-specific language;
|
|
57
|
+
* more specific than the Effect.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
effectDetail?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The URL which provides additional information about the alert.
|
|
63
|
+
*/
|
|
64
|
+
url?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Header for the alert. This plain-text string will be highlighted, for example in boldface.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
headerText: string;
|
|
70
|
+
/**
|
|
71
|
+
* Description for the alert.
|
|
72
|
+
* This plain-text string will be formatted as the body of the alert (or shown on an explicit "expand" request by the user).
|
|
73
|
+
* The information in the description should add to the information of the header.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
descriptionText: string;
|
|
77
|
+
/**
|
|
78
|
+
* Text containing the alert's header to be used for text-to-speech implementations.
|
|
79
|
+
* This field is the text-to-speech version of header_text.
|
|
80
|
+
* It should contain the same information as headerText but formatted such that it can read as text-to-speech
|
|
81
|
+
* (for example, abbreviations removed, numbers spelled out, etc.)
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
ttsHeaderText?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Text containing a description for the alert to be used for text-to-speech implementations.
|
|
87
|
+
* This field is the text-to-speech version of description_text.
|
|
88
|
+
* It should contain the same information as description_text but formatted such that it can be read as text-to-speech
|
|
89
|
+
* (for example, abbreviations removed, numbers spelled out, etc.)
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
ttsDescriptionText?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Severity of the alert.
|
|
95
|
+
*/
|
|
96
|
+
severityLevel?: AlertSeverityLevel;
|
|
97
|
+
/**
|
|
98
|
+
* String containing an URL linking to an image.
|
|
99
|
+
*/
|
|
100
|
+
imageUrl?: string;
|
|
101
|
+
/**
|
|
102
|
+
* IANA media type as to specify the type of image to be displayed. The type must start with "image/"
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
imageMediaType?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Text describing the appearance of the linked image in the image field
|
|
108
|
+
* (e.g., in case the image can't be displayed or the user can't see the image for accessibility reasons).
|
|
109
|
+
* See the HTML spec for alt image text.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
imageAlternativeText?: string;
|
|
136
113
|
};
|
|
137
114
|
/**
|
|
138
115
|
* Object containing duration if a path was found or none if no path was found
|
|
139
116
|
*/
|
|
140
117
|
type Duration = {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
118
|
+
/**
|
|
119
|
+
* duration in seconds if a path was found, otherwise missing
|
|
120
|
+
*/
|
|
121
|
+
duration?: number;
|
|
145
122
|
};
|
|
146
123
|
/**
|
|
147
124
|
* Administrative area
|
|
148
125
|
*/
|
|
149
126
|
type Area = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Name of the area
|
|
129
|
+
*/
|
|
130
|
+
name: string;
|
|
131
|
+
/**
|
|
132
|
+
* [OpenStreetMap `admin_level`](https://wiki.openstreetmap.org/wiki/Key:admin_level)
|
|
133
|
+
* of the area
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
adminLevel: number;
|
|
137
|
+
/**
|
|
138
|
+
* Whether this area was matched by the input text
|
|
139
|
+
*/
|
|
140
|
+
matched: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Set for the first area after the `default` area that distinguishes areas
|
|
143
|
+
* if the match is ambiguous regarding (`default` area + place name / street [+ house number]).
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
unique?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Whether this area should be displayed as default area (area with admin level closest 7)
|
|
149
|
+
*/
|
|
150
|
+
default?: boolean;
|
|
174
151
|
};
|
|
175
152
|
/**
|
|
176
153
|
* Matched token range (from index, length)
|
|
177
154
|
*/
|
|
178
|
-
type Token = [
|
|
155
|
+
type Token = [
|
|
156
|
+
number,
|
|
157
|
+
number
|
|
158
|
+
];
|
|
179
159
|
/**
|
|
180
160
|
* location type
|
|
181
161
|
*/
|
|
@@ -184,53 +164,53 @@ type LocationType = 'ADDRESS' | 'PLACE' | 'STOP';
|
|
|
184
164
|
* GeoCoding match
|
|
185
165
|
*/
|
|
186
166
|
type Match = {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
167
|
+
type: LocationType;
|
|
168
|
+
/**
|
|
169
|
+
* list of non-overlapping tokens that were matched
|
|
170
|
+
*/
|
|
171
|
+
tokens: Array<Token>;
|
|
172
|
+
/**
|
|
173
|
+
* name of the location (transit stop / PoI / address)
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
/**
|
|
177
|
+
* unique ID of the location
|
|
178
|
+
*/
|
|
179
|
+
id: string;
|
|
180
|
+
/**
|
|
181
|
+
* latitude
|
|
182
|
+
*/
|
|
183
|
+
lat: number;
|
|
184
|
+
/**
|
|
185
|
+
* longitude
|
|
186
|
+
*/
|
|
187
|
+
lon: number;
|
|
188
|
+
/**
|
|
189
|
+
* level according to OpenStreetMap
|
|
190
|
+
* (at the moment only for public transport)
|
|
191
|
+
*
|
|
192
|
+
*/
|
|
193
|
+
level?: number;
|
|
194
|
+
/**
|
|
195
|
+
* street name
|
|
196
|
+
*/
|
|
197
|
+
street?: string;
|
|
198
|
+
/**
|
|
199
|
+
* house number
|
|
200
|
+
*/
|
|
201
|
+
houseNumber?: string;
|
|
202
|
+
/**
|
|
203
|
+
* zip code
|
|
204
|
+
*/
|
|
205
|
+
zip?: string;
|
|
206
|
+
/**
|
|
207
|
+
* list of areas
|
|
208
|
+
*/
|
|
209
|
+
areas: Array<Area>;
|
|
210
|
+
/**
|
|
211
|
+
* score according to the internal scoring system (the scoring algorithm might change in the future)
|
|
212
|
+
*/
|
|
213
|
+
score: number;
|
|
234
214
|
};
|
|
235
215
|
/**
|
|
236
216
|
* Different elevation cost profiles for street routing.
|
|
@@ -260,14 +240,14 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
|
|
|
260
240
|
*
|
|
261
241
|
* # Transit modes
|
|
262
242
|
*
|
|
263
|
-
* - `TRANSIT`: translates to `RAIL,
|
|
243
|
+
* - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`
|
|
264
244
|
* - `TRAM`: trams
|
|
265
245
|
* - `SUBWAY`: subway trains
|
|
266
246
|
* - `FERRY`: ferries
|
|
267
247
|
* - `AIRPLANE`: airline flights
|
|
268
248
|
* - `BUS`: short distance buses (does not include `COACH`)
|
|
269
249
|
* - `COACH`: long distance buses (does not include `BUS`)
|
|
270
|
-
* - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`
|
|
250
|
+
* - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,METRO,SUBWAY`
|
|
271
251
|
* - `METRO`: metro trains
|
|
272
252
|
* - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)
|
|
273
253
|
* - `LONG_DISTANCE`: long distance inter city trains
|
|
@@ -279,33 +259,7 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
|
|
|
279
259
|
* - `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.
|
|
280
260
|
*
|
|
281
261
|
*/
|
|
282
|
-
type Mode =
|
|
283
|
-
| 'WALK'
|
|
284
|
-
| 'BIKE'
|
|
285
|
-
| 'RENTAL'
|
|
286
|
-
| 'CAR'
|
|
287
|
-
| 'CAR_PARKING'
|
|
288
|
-
| 'CAR_DROPOFF'
|
|
289
|
-
| 'ODM'
|
|
290
|
-
| 'FLEX'
|
|
291
|
-
| 'TRANSIT'
|
|
292
|
-
| 'TRAM'
|
|
293
|
-
| 'SUBWAY'
|
|
294
|
-
| 'FERRY'
|
|
295
|
-
| 'AIRPLANE'
|
|
296
|
-
| 'METRO'
|
|
297
|
-
| 'BUS'
|
|
298
|
-
| 'COACH'
|
|
299
|
-
| 'RAIL'
|
|
300
|
-
| 'HIGHSPEED_RAIL'
|
|
301
|
-
| 'LONG_DISTANCE'
|
|
302
|
-
| 'NIGHT_RAIL'
|
|
303
|
-
| 'REGIONAL_FAST_RAIL'
|
|
304
|
-
| 'REGIONAL_RAIL'
|
|
305
|
-
| 'CABLE_CAR'
|
|
306
|
-
| 'FUNICULAR'
|
|
307
|
-
| 'AREAL_LIFT'
|
|
308
|
-
| 'OTHER';
|
|
262
|
+
type Mode = 'WALK' | 'BIKE' | 'RENTAL' | 'CAR' | 'CAR_PARKING' | 'CAR_DROPOFF' | 'ODM' | 'FLEX' | 'TRANSIT' | 'TRAM' | 'SUBWAY' | 'FERRY' | 'AIRPLANE' | 'METRO' | 'BUS' | 'COACH' | 'RAIL' | 'HIGHSPEED_RAIL' | 'LONG_DISTANCE' | 'NIGHT_RAIL' | 'REGIONAL_FAST_RAIL' | 'REGIONAL_RAIL' | 'CABLE_CAR' | 'FUNICULAR' | 'AREAL_LIFT' | 'OTHER';
|
|
309
263
|
/**
|
|
310
264
|
* - `NORMAL` - latitude / longitude coordinate or address
|
|
311
265
|
* - `BIKESHARE` - bike sharing station
|
|
@@ -320,532 +274,518 @@ type VertexType = 'NORMAL' | 'BIKESHARE' | 'TRANSIT';
|
|
|
320
274
|
*/
|
|
321
275
|
type PickupDropoffType = 'NORMAL' | 'NOT_ALLOWED';
|
|
322
276
|
type Place = {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
277
|
+
/**
|
|
278
|
+
* name of the transit stop / PoI / address
|
|
279
|
+
*/
|
|
280
|
+
name: string;
|
|
281
|
+
/**
|
|
282
|
+
* The ID of the stop. This is often something that users don't care about.
|
|
283
|
+
*/
|
|
284
|
+
stopId?: string;
|
|
285
|
+
/**
|
|
286
|
+
* latitude
|
|
287
|
+
*/
|
|
288
|
+
lat: number;
|
|
289
|
+
/**
|
|
290
|
+
* longitude
|
|
291
|
+
*/
|
|
292
|
+
lon: number;
|
|
293
|
+
/**
|
|
294
|
+
* level according to OpenStreetMap
|
|
295
|
+
*/
|
|
296
|
+
level: number;
|
|
297
|
+
/**
|
|
298
|
+
* arrival time
|
|
299
|
+
*/
|
|
300
|
+
arrival?: string;
|
|
301
|
+
/**
|
|
302
|
+
* departure time
|
|
303
|
+
*/
|
|
304
|
+
departure?: string;
|
|
305
|
+
/**
|
|
306
|
+
* scheduled arrival time
|
|
307
|
+
*/
|
|
308
|
+
scheduledArrival?: string;
|
|
309
|
+
/**
|
|
310
|
+
* scheduled departure time
|
|
311
|
+
*/
|
|
312
|
+
scheduledDeparture?: string;
|
|
313
|
+
/**
|
|
314
|
+
* scheduled track from the static schedule timetable dataset
|
|
315
|
+
*/
|
|
316
|
+
scheduledTrack?: string;
|
|
317
|
+
/**
|
|
318
|
+
* The current track/platform information, updated with real-time updates if available.
|
|
319
|
+
* Can be missing if neither real-time updates nor the schedule timetable contains track information.
|
|
320
|
+
*
|
|
321
|
+
*/
|
|
322
|
+
track?: string;
|
|
323
|
+
/**
|
|
324
|
+
* description of the location that provides more detailed information
|
|
325
|
+
*/
|
|
326
|
+
description?: string;
|
|
327
|
+
vertexType?: VertexType;
|
|
328
|
+
/**
|
|
329
|
+
* Type of pickup. It could be disallowed due to schedule, skipped stops or cancellations.
|
|
330
|
+
*/
|
|
331
|
+
pickupType?: PickupDropoffType;
|
|
332
|
+
/**
|
|
333
|
+
* Type of dropoff. It could be disallowed due to schedule, skipped stops or cancellations.
|
|
334
|
+
*/
|
|
335
|
+
dropoffType?: PickupDropoffType;
|
|
336
|
+
/**
|
|
337
|
+
* Whether this stop is cancelled due to the realtime situation.
|
|
338
|
+
*/
|
|
339
|
+
cancelled?: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Alerts for this stop.
|
|
342
|
+
*/
|
|
343
|
+
alerts?: Array<Alert>;
|
|
344
|
+
/**
|
|
345
|
+
* for `FLEX` transports, the flex location area or location group name
|
|
346
|
+
*/
|
|
347
|
+
flex?: string;
|
|
348
|
+
/**
|
|
349
|
+
* for `FLEX` transports, the flex location area ID or location group ID
|
|
350
|
+
*/
|
|
351
|
+
flexId?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Time that on-demand service becomes available
|
|
354
|
+
*/
|
|
355
|
+
flexStartPickupDropOffWindow?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Time that on-demand service ends
|
|
358
|
+
*/
|
|
359
|
+
flexEndPickupDropOffWindow?: string;
|
|
406
360
|
};
|
|
407
361
|
/**
|
|
408
362
|
* Place reachable by One-to-All
|
|
409
363
|
*/
|
|
410
364
|
type ReachablePlace = {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
365
|
+
/**
|
|
366
|
+
* Place reached by One-to-All
|
|
367
|
+
*/
|
|
368
|
+
place?: Place;
|
|
369
|
+
/**
|
|
370
|
+
* Total travel duration
|
|
371
|
+
*/
|
|
372
|
+
duration?: number;
|
|
373
|
+
/**
|
|
374
|
+
* k is the smallest number, for which a journey with the shortest duration and at most k-1 transfers exist.
|
|
375
|
+
* You can think of k as the number of connections used.
|
|
376
|
+
*
|
|
377
|
+
* In more detail:
|
|
378
|
+
*
|
|
379
|
+
* k=0: No connection, e.g. for the one location
|
|
380
|
+
* k=1: Direct connection
|
|
381
|
+
* k=2: Connection with 1 transfer
|
|
382
|
+
*
|
|
383
|
+
*/
|
|
384
|
+
k?: number;
|
|
431
385
|
};
|
|
432
386
|
/**
|
|
433
387
|
* Object containing all reachable places by One-to-All search
|
|
434
388
|
*/
|
|
435
389
|
type Reachable = {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
390
|
+
/**
|
|
391
|
+
* One location used in One-to-All search
|
|
392
|
+
*/
|
|
393
|
+
one?: Place;
|
|
394
|
+
/**
|
|
395
|
+
* List of locations reachable by One-to-All
|
|
396
|
+
*/
|
|
397
|
+
all?: Array<ReachablePlace>;
|
|
444
398
|
};
|
|
445
399
|
/**
|
|
446
400
|
* departure or arrival event at a stop
|
|
447
401
|
*/
|
|
448
402
|
type StopTime = {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
403
|
+
/**
|
|
404
|
+
* information about the stop place and time
|
|
405
|
+
*/
|
|
406
|
+
place: Place;
|
|
407
|
+
/**
|
|
408
|
+
* Transport mode for this leg
|
|
409
|
+
*/
|
|
410
|
+
mode: Mode;
|
|
411
|
+
/**
|
|
412
|
+
* Whether there is real-time data about this leg
|
|
413
|
+
*/
|
|
414
|
+
realTime: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* For transit legs, the headsign of the bus or train being used.
|
|
417
|
+
* For non-transit legs, null
|
|
418
|
+
*
|
|
419
|
+
*/
|
|
420
|
+
headsign: string;
|
|
421
|
+
agencyId: string;
|
|
422
|
+
agencyName: string;
|
|
423
|
+
agencyUrl: string;
|
|
424
|
+
routeColor?: string;
|
|
425
|
+
routeTextColor?: string;
|
|
426
|
+
tripId: string;
|
|
427
|
+
routeShortName: string;
|
|
428
|
+
/**
|
|
429
|
+
* Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations
|
|
430
|
+
*/
|
|
431
|
+
pickupDropoffType: PickupDropoffType;
|
|
432
|
+
/**
|
|
433
|
+
* Whether the departure/arrival is cancelled due to the realtime situation (either because the stop is skipped or because the entire trip is cancelled).
|
|
434
|
+
*/
|
|
435
|
+
cancelled: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Whether the entire trip is cancelled due to the realtime situation.
|
|
438
|
+
*/
|
|
439
|
+
tripCancelled: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* Filename and line number where this trip is from
|
|
442
|
+
*/
|
|
443
|
+
source: string;
|
|
490
444
|
};
|
|
491
445
|
/**
|
|
492
446
|
* trip id and name
|
|
493
447
|
*/
|
|
494
448
|
type TripInfo = {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
449
|
+
/**
|
|
450
|
+
* trip ID (dataset trip id prefixed with the dataset tag)
|
|
451
|
+
*/
|
|
452
|
+
tripId: string;
|
|
453
|
+
/**
|
|
454
|
+
* trip display name
|
|
455
|
+
*/
|
|
456
|
+
routeShortName: string;
|
|
503
457
|
};
|
|
504
458
|
/**
|
|
505
459
|
* trip segment between two stops to show a trip on a map
|
|
506
460
|
*/
|
|
507
461
|
type TripSegment = {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
462
|
+
trips: Array<TripInfo>;
|
|
463
|
+
routeColor?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Transport mode for this leg
|
|
466
|
+
*/
|
|
467
|
+
mode: Mode;
|
|
468
|
+
/**
|
|
469
|
+
* distance in meters
|
|
470
|
+
*/
|
|
471
|
+
distance: number;
|
|
472
|
+
from: Place;
|
|
473
|
+
to: Place;
|
|
474
|
+
/**
|
|
475
|
+
* departure time
|
|
476
|
+
*/
|
|
477
|
+
departure: string;
|
|
478
|
+
/**
|
|
479
|
+
* arrival time
|
|
480
|
+
*/
|
|
481
|
+
arrival: string;
|
|
482
|
+
/**
|
|
483
|
+
* scheduled departure time
|
|
484
|
+
*/
|
|
485
|
+
scheduledDeparture: string;
|
|
486
|
+
/**
|
|
487
|
+
* scheduled arrival time
|
|
488
|
+
*/
|
|
489
|
+
scheduledArrival: string;
|
|
490
|
+
/**
|
|
491
|
+
* Whether there is real-time data about this leg
|
|
492
|
+
*/
|
|
493
|
+
realTime: boolean;
|
|
494
|
+
/**
|
|
495
|
+
* Google polyline encoded coordinate sequence (with precision 5) where the trip travels on this segment.
|
|
496
|
+
*/
|
|
497
|
+
polyline: string;
|
|
544
498
|
};
|
|
545
|
-
type Direction =
|
|
546
|
-
| 'DEPART'
|
|
547
|
-
| 'HARD_LEFT'
|
|
548
|
-
| 'LEFT'
|
|
549
|
-
| 'SLIGHTLY_LEFT'
|
|
550
|
-
| 'CONTINUE'
|
|
551
|
-
| 'SLIGHTLY_RIGHT'
|
|
552
|
-
| 'RIGHT'
|
|
553
|
-
| 'HARD_RIGHT'
|
|
554
|
-
| 'CIRCLE_CLOCKWISE'
|
|
555
|
-
| 'CIRCLE_COUNTERCLOCKWISE'
|
|
556
|
-
| 'STAIRS'
|
|
557
|
-
| 'ELEVATOR'
|
|
558
|
-
| 'UTURN_LEFT'
|
|
559
|
-
| 'UTURN_RIGHT';
|
|
499
|
+
type Direction = 'DEPART' | 'HARD_LEFT' | 'LEFT' | 'SLIGHTLY_LEFT' | 'CONTINUE' | 'SLIGHTLY_RIGHT' | 'RIGHT' | 'HARD_RIGHT' | 'CIRCLE_CLOCKWISE' | 'CIRCLE_COUNTERCLOCKWISE' | 'STAIRS' | 'ELEVATOR' | 'UTURN_LEFT' | 'UTURN_RIGHT';
|
|
560
500
|
type EncodedPolyline = {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
501
|
+
/**
|
|
502
|
+
* The encoded points of the polyline using the Google polyline encoding.
|
|
503
|
+
*/
|
|
504
|
+
points: string;
|
|
505
|
+
/**
|
|
506
|
+
* The precision of the returned polyline (7 for /v1, 6 for /v2)
|
|
507
|
+
* Be aware that with precision 7, coordinates with |longitude| > 107.37 are undefined/will overflow.
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
510
|
+
precision: number;
|
|
511
|
+
/**
|
|
512
|
+
* The number of points in the string
|
|
513
|
+
*/
|
|
514
|
+
length: number;
|
|
575
515
|
};
|
|
576
516
|
type StepInstruction = {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
517
|
+
relativeDirection: Direction;
|
|
518
|
+
/**
|
|
519
|
+
* The distance in meters that this step takes.
|
|
520
|
+
*/
|
|
521
|
+
distance: number;
|
|
522
|
+
/**
|
|
523
|
+
* level where this segment starts, based on OpenStreetMap data
|
|
524
|
+
*/
|
|
525
|
+
fromLevel: number;
|
|
526
|
+
/**
|
|
527
|
+
* level where this segment starts, based on OpenStreetMap data
|
|
528
|
+
*/
|
|
529
|
+
toLevel: number;
|
|
530
|
+
/**
|
|
531
|
+
* OpenStreetMap way index
|
|
532
|
+
*/
|
|
533
|
+
osmWay?: number;
|
|
534
|
+
polyline: EncodedPolyline;
|
|
535
|
+
/**
|
|
536
|
+
* The name of the street.
|
|
537
|
+
*/
|
|
538
|
+
streetName: string;
|
|
539
|
+
/**
|
|
540
|
+
* Not implemented!
|
|
541
|
+
* When exiting a highway or traffic circle, the exit name/number.
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
exit: string;
|
|
545
|
+
/**
|
|
546
|
+
* Not implemented!
|
|
547
|
+
* Indicates whether or not a street changes direction at an intersection.
|
|
548
|
+
*
|
|
549
|
+
*/
|
|
550
|
+
stayOn: boolean;
|
|
551
|
+
/**
|
|
552
|
+
* Not implemented!
|
|
553
|
+
* This step is on an open area, such as a plaza or train platform,
|
|
554
|
+
* and thus the directions should say something like "cross"
|
|
555
|
+
*
|
|
556
|
+
*/
|
|
557
|
+
area: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Indicates that a fee must be paid by general traffic to use a road, road bridge or road tunnel.
|
|
560
|
+
*/
|
|
561
|
+
toll?: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Experimental. Indicates whether access to this part of the route is restricted.
|
|
564
|
+
* See: https://wiki.openstreetmap.org/wiki/Conditional_restrictions
|
|
565
|
+
*
|
|
566
|
+
*/
|
|
567
|
+
accessRestriction?: string;
|
|
568
|
+
/**
|
|
569
|
+
* incline in meters across this path segment
|
|
570
|
+
*/
|
|
571
|
+
elevationUp?: number;
|
|
572
|
+
/**
|
|
573
|
+
* decline in meters across this path segment
|
|
574
|
+
*/
|
|
575
|
+
elevationDown?: number;
|
|
636
576
|
};
|
|
637
|
-
type RentalFormFactor =
|
|
638
|
-
|
|
639
|
-
| 'CARGO_BICYCLE'
|
|
640
|
-
| 'CAR'
|
|
641
|
-
| 'MOPED'
|
|
642
|
-
| 'SCOOTER_STANDING'
|
|
643
|
-
| 'SCOOTER_SEATED'
|
|
644
|
-
| 'OTHER';
|
|
645
|
-
type RentalPropulsionType =
|
|
646
|
-
| 'HUMAN'
|
|
647
|
-
| 'ELECTRIC_ASSIST'
|
|
648
|
-
| 'ELECTRIC'
|
|
649
|
-
| 'COMBUSTION'
|
|
650
|
-
| 'COMBUSTION_DIESEL'
|
|
651
|
-
| 'HYBRID'
|
|
652
|
-
| 'PLUG_IN_HYBRID'
|
|
653
|
-
| 'HYDROGEN_FUEL_CELL';
|
|
577
|
+
type RentalFormFactor = 'BICYCLE' | 'CARGO_BICYCLE' | 'CAR' | 'MOPED' | 'SCOOTER_STANDING' | 'SCOOTER_SEATED' | 'OTHER';
|
|
578
|
+
type RentalPropulsionType = 'HUMAN' | 'ELECTRIC_ASSIST' | 'ELECTRIC' | 'COMBUSTION' | 'COMBUSTION_DIESEL' | 'HYBRID' | 'PLUG_IN_HYBRID' | 'HYDROGEN_FUEL_CELL';
|
|
654
579
|
type RentalReturnConstraint = 'NONE' | 'ANY_STATION' | 'ROUNDTRIP_STATION';
|
|
655
580
|
/**
|
|
656
581
|
* Vehicle rental
|
|
657
582
|
*/
|
|
658
583
|
type Rental = {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
584
|
+
/**
|
|
585
|
+
* Vehicle share system ID
|
|
586
|
+
*/
|
|
587
|
+
systemId: string;
|
|
588
|
+
/**
|
|
589
|
+
* Vehicle share system name
|
|
590
|
+
*/
|
|
591
|
+
systemName?: string;
|
|
592
|
+
/**
|
|
593
|
+
* URL of the vehicle share system
|
|
594
|
+
*/
|
|
595
|
+
url?: string;
|
|
596
|
+
/**
|
|
597
|
+
* Name of the station
|
|
598
|
+
*/
|
|
599
|
+
stationName?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Name of the station where the vehicle is picked up (empty for free floating vehicles)
|
|
602
|
+
*/
|
|
603
|
+
fromStationName?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Name of the station where the vehicle is returned (empty for free floating vehicles)
|
|
606
|
+
*/
|
|
607
|
+
toStationName?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Rental URI for Android (deep link to the specific station or vehicle)
|
|
610
|
+
*/
|
|
611
|
+
rentalUriAndroid?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Rental URI for iOS (deep link to the specific station or vehicle)
|
|
614
|
+
*/
|
|
615
|
+
rentalUriIOS?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Rental URI for web (deep link to the specific station or vehicle)
|
|
618
|
+
*/
|
|
619
|
+
rentalUriWeb?: string;
|
|
620
|
+
formFactor?: RentalFormFactor;
|
|
621
|
+
propulsionType?: RentalPropulsionType;
|
|
622
|
+
returnConstraint?: RentalReturnConstraint;
|
|
698
623
|
};
|
|
699
624
|
type Leg = {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
625
|
+
/**
|
|
626
|
+
* Transport mode for this leg
|
|
627
|
+
*/
|
|
628
|
+
mode: Mode;
|
|
629
|
+
from: Place;
|
|
630
|
+
to: Place;
|
|
631
|
+
/**
|
|
632
|
+
* Leg duration in seconds
|
|
633
|
+
*
|
|
634
|
+
* If leg is footpath:
|
|
635
|
+
* The footpath duration is derived from the default footpath
|
|
636
|
+
* duration using the query parameters `transferTimeFactor` and
|
|
637
|
+
* `additionalTransferTime` as follows:
|
|
638
|
+
* `leg.duration = defaultDuration * transferTimeFactor + additionalTransferTime.`
|
|
639
|
+
* In case the defaultDuration is needed, it can be calculated by
|
|
640
|
+
* `defaultDuration = (leg.duration - additionalTransferTime) / transferTimeFactor`.
|
|
641
|
+
* Note that the default values are `transferTimeFactor = 1` and
|
|
642
|
+
* `additionalTransferTime = 0` in case they are not explicitly
|
|
643
|
+
* provided in the query.
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
duration: number;
|
|
647
|
+
/**
|
|
648
|
+
* leg departure time
|
|
649
|
+
*/
|
|
650
|
+
startTime: string;
|
|
651
|
+
/**
|
|
652
|
+
* leg arrival time
|
|
653
|
+
*/
|
|
654
|
+
endTime: string;
|
|
655
|
+
/**
|
|
656
|
+
* scheduled leg departure time
|
|
657
|
+
*/
|
|
658
|
+
scheduledStartTime: string;
|
|
659
|
+
/**
|
|
660
|
+
* scheduled leg arrival time
|
|
661
|
+
*/
|
|
662
|
+
scheduledEndTime: string;
|
|
663
|
+
/**
|
|
664
|
+
* Whether there is real-time data about this leg
|
|
665
|
+
*/
|
|
666
|
+
realTime: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Whether this leg was originally scheduled to run or is an additional service.
|
|
669
|
+
* Scheduled times will equal realtime times in this case.
|
|
670
|
+
*
|
|
671
|
+
*/
|
|
672
|
+
scheduled: boolean;
|
|
673
|
+
/**
|
|
674
|
+
* For non-transit legs the distance traveled while traversing this leg in meters.
|
|
675
|
+
*/
|
|
676
|
+
distance?: number;
|
|
677
|
+
/**
|
|
678
|
+
* For transit legs, if the rider should stay on the vehicle as it changes route names.
|
|
679
|
+
*/
|
|
680
|
+
interlineWithPreviousLeg?: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* For transit legs, the headsign of the bus or train being used.
|
|
683
|
+
* For non-transit legs, null
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
686
|
+
headsign?: string;
|
|
687
|
+
routeColor?: string;
|
|
688
|
+
routeTextColor?: string;
|
|
689
|
+
routeType?: string;
|
|
690
|
+
agencyName?: string;
|
|
691
|
+
agencyUrl?: string;
|
|
692
|
+
agencyId?: string;
|
|
693
|
+
tripId?: string;
|
|
694
|
+
routeShortName?: string;
|
|
695
|
+
/**
|
|
696
|
+
* Whether this trip is cancelled
|
|
697
|
+
*/
|
|
698
|
+
cancelled?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* Filename and line number where this trip is from
|
|
701
|
+
*/
|
|
702
|
+
source?: string;
|
|
703
|
+
/**
|
|
704
|
+
* For transit legs, intermediate stops between the Place where the leg originates
|
|
705
|
+
* and the Place where the leg ends. For non-transit legs, null.
|
|
706
|
+
*
|
|
707
|
+
*/
|
|
708
|
+
intermediateStops?: Array<Place>;
|
|
709
|
+
legGeometry: EncodedPolyline;
|
|
710
|
+
/**
|
|
711
|
+
* A series of turn by turn instructions
|
|
712
|
+
* used for walking, biking and driving.
|
|
713
|
+
*
|
|
714
|
+
*/
|
|
715
|
+
steps?: Array<StepInstruction>;
|
|
716
|
+
rental?: Rental;
|
|
717
|
+
/**
|
|
718
|
+
* Index into `Itinerary.fareTransfers` array
|
|
719
|
+
* to identify which fare transfer this leg belongs to
|
|
720
|
+
*
|
|
721
|
+
*/
|
|
722
|
+
fareTransferIndex?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Index into the `Itinerary.fareTransfers[fareTransferIndex].effectiveFareLegProducts` array
|
|
725
|
+
* to identify which effective fare leg this itinerary leg belongs to
|
|
726
|
+
*
|
|
727
|
+
*/
|
|
728
|
+
effectiveFareLegIndex?: number;
|
|
729
|
+
/**
|
|
730
|
+
* Alerts for this stop.
|
|
731
|
+
*/
|
|
732
|
+
alerts?: Array<Alert>;
|
|
733
|
+
/**
|
|
734
|
+
* If set, this attribute indicates that this trip has been expanded
|
|
735
|
+
* beyond the feed end date (enabled by config flag `timetable.dataset.extend_calendar`)
|
|
736
|
+
* by looping active weekdays, e.g. from calendar.txt in GTFS.
|
|
737
|
+
*
|
|
738
|
+
*/
|
|
739
|
+
loopedCalendarSince?: string;
|
|
808
740
|
};
|
|
809
741
|
type RiderCategory = {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
742
|
+
/**
|
|
743
|
+
* Rider category name as displayed to the rider.
|
|
744
|
+
*/
|
|
745
|
+
riderCategoryName: string;
|
|
746
|
+
/**
|
|
747
|
+
* Specifies if this category should be considered the default (i.e. the main category displayed to riders).
|
|
748
|
+
*/
|
|
749
|
+
isDefaultFareCategory: boolean;
|
|
750
|
+
/**
|
|
751
|
+
* URL to a web page providing detailed information about the rider category and/or its eligibility criteria.
|
|
752
|
+
*/
|
|
753
|
+
eligibilityUrl?: string;
|
|
822
754
|
};
|
|
755
|
+
/**
|
|
756
|
+
* - `NONE`: No fare media involved (e.g., cash payment)
|
|
757
|
+
* - `PAPER_TICKET`: Physical paper ticket
|
|
758
|
+
* - `TRANSIT_CARD`: Physical transit card with stored value
|
|
759
|
+
* - `CONTACTLESS_EMV`: cEMV (contactless payment)
|
|
760
|
+
* - `MOBILE_APP`: Mobile app with virtual transit cards/passes
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
823
763
|
type FareMediaType = 'NONE' | 'PAPER_TICKET' | 'TRANSIT_CARD' | 'CONTACTLESS_EMV' | 'MOBILE_APP';
|
|
824
764
|
type FareMedia = {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
765
|
+
/**
|
|
766
|
+
* Name of the fare media. Required for transit cards and mobile apps.
|
|
767
|
+
*/
|
|
768
|
+
fareMediaName?: string;
|
|
769
|
+
/**
|
|
770
|
+
* The type of fare media.
|
|
771
|
+
*/
|
|
772
|
+
fareMediaType: FareMediaType;
|
|
833
773
|
};
|
|
834
774
|
type FareProduct = {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
775
|
+
/**
|
|
776
|
+
* The name of the fare product as displayed to riders.
|
|
777
|
+
*/
|
|
778
|
+
name: string;
|
|
779
|
+
/**
|
|
780
|
+
* The cost of the fare product. May be negative to represent transfer discounts. May be zero to represent a fare product that is free.
|
|
781
|
+
*/
|
|
782
|
+
amount: number;
|
|
783
|
+
/**
|
|
784
|
+
* ISO 4217 currency code. The currency of the cost of the fare product.
|
|
785
|
+
*/
|
|
786
|
+
currency: string;
|
|
787
|
+
riderCategory?: RiderCategory;
|
|
788
|
+
media?: FareMedia;
|
|
849
789
|
};
|
|
850
790
|
type FareTransferRule = 'A_AB' | 'A_AB_B' | 'AB';
|
|
851
791
|
/**
|
|
@@ -868,1135 +808,1098 @@ type FareTransferRule = 'A_AB' | 'A_AB_B' | 'AB';
|
|
|
868
808
|
*
|
|
869
809
|
*/
|
|
870
810
|
type FareTransfer = {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
811
|
+
rule?: FareTransferRule;
|
|
812
|
+
transferProducts?: Array<FareProduct>;
|
|
813
|
+
/**
|
|
814
|
+
* Lists all valid fare products for the effective fare legs.
|
|
815
|
+
* This is an `array<array<FareProduct>>` where the inner array
|
|
816
|
+
* lists all possible fare products that would cover this effective fare leg.
|
|
817
|
+
* Each "effective fare leg" can have multiple options for adult/child/weekly/monthly/day/one-way tickets etc.
|
|
818
|
+
* You can see the outer array as AND (you need one ticket for each effective fare leg (`A_AB_B`), the first effective fare leg (`A_AB`) or no fare leg at all but only the transfer product (`AB`)
|
|
819
|
+
* and the inner array as OR (you can choose which ticket to buy)
|
|
820
|
+
*
|
|
821
|
+
*/
|
|
822
|
+
effectiveFareLegProducts: Array<Array<Array<FareProduct>>>;
|
|
883
823
|
};
|
|
884
824
|
type Itinerary = {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
825
|
+
/**
|
|
826
|
+
* journey duration in seconds
|
|
827
|
+
*/
|
|
828
|
+
duration: number;
|
|
829
|
+
/**
|
|
830
|
+
* journey departure time
|
|
831
|
+
*/
|
|
832
|
+
startTime: string;
|
|
833
|
+
/**
|
|
834
|
+
* journey arrival time
|
|
835
|
+
*/
|
|
836
|
+
endTime: string;
|
|
837
|
+
/**
|
|
838
|
+
* The number of transfers this trip has.
|
|
839
|
+
*/
|
|
840
|
+
transfers: number;
|
|
841
|
+
/**
|
|
842
|
+
* Journey legs
|
|
843
|
+
*/
|
|
844
|
+
legs: Array<Leg>;
|
|
845
|
+
/**
|
|
846
|
+
* Fare information
|
|
847
|
+
*/
|
|
848
|
+
fareTransfers?: Array<FareTransfer>;
|
|
909
849
|
};
|
|
910
850
|
/**
|
|
911
851
|
* transfer from one location to another
|
|
912
852
|
*/
|
|
913
853
|
type Transfer = {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
854
|
+
to: Place;
|
|
855
|
+
/**
|
|
856
|
+
* optional; missing if the GTFS did not contain a transfer
|
|
857
|
+
* transfer duration in minutes according to GTFS (+heuristics)
|
|
858
|
+
*
|
|
859
|
+
*/
|
|
860
|
+
default?: number;
|
|
861
|
+
/**
|
|
862
|
+
* optional; missing if no path was found (timetable / osr)
|
|
863
|
+
* transfer duration in minutes for the foot profile
|
|
864
|
+
*
|
|
865
|
+
*/
|
|
866
|
+
foot?: number;
|
|
867
|
+
/**
|
|
868
|
+
* optional; missing if no path was found with foot routing
|
|
869
|
+
* transfer duration in minutes for the foot profile
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
872
|
+
footRouted?: number;
|
|
873
|
+
/**
|
|
874
|
+
* optional; missing if no path was found with the wheelchair profile
|
|
875
|
+
* transfer duration in minutes for the wheelchair profile
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
878
|
+
wheelchair?: number;
|
|
879
|
+
/**
|
|
880
|
+
* optional; missing if no path was found with the wheelchair profile
|
|
881
|
+
* transfer duration in minutes for the wheelchair profile
|
|
882
|
+
*
|
|
883
|
+
*/
|
|
884
|
+
wheelchairRouted?: number;
|
|
885
|
+
/**
|
|
886
|
+
* optional; missing if no path was found with the wheelchair profile
|
|
887
|
+
* true if the wheelchair path uses an elevator
|
|
888
|
+
*
|
|
889
|
+
*/
|
|
890
|
+
wheelchairUsesElevator?: boolean;
|
|
891
|
+
/**
|
|
892
|
+
* optional; missing if no path was found with car routing
|
|
893
|
+
* transfer duration in minutes for the car profile
|
|
894
|
+
*
|
|
895
|
+
*/
|
|
896
|
+
car?: number;
|
|
957
897
|
};
|
|
958
898
|
type PlanData = {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
from: Place;
|
|
1417
|
-
to: Place;
|
|
1418
|
-
/**
|
|
1419
|
-
* Direct trips by `WALK`, `BIKE`, `CAR`, etc. without time-dependency.
|
|
1420
|
-
* The starting time (`arriveBy=false`) / arrival time (`arriveBy=true`) is always the queried `time` parameter (set to \"now\" if not set).
|
|
1421
|
-
* But all `direct` connections are meant to be independent of absolute times.
|
|
1422
|
-
*
|
|
1423
|
-
*/
|
|
1424
|
-
direct: Array<Itinerary>;
|
|
1425
|
-
/**
|
|
1426
|
-
* list of itineraries
|
|
1427
|
-
*/
|
|
1428
|
-
itineraries: Array<Itinerary>;
|
|
1429
|
-
/**
|
|
1430
|
-
* Use the cursor to get the previous page of results. Insert the cursor into the request and post it to get the previous page.
|
|
1431
|
-
* The previous page is a set of itineraries departing BEFORE the first itinerary in the result for a depart after search. When using the default sort order the previous set of itineraries is inserted before the current result.
|
|
1432
|
-
*
|
|
1433
|
-
*/
|
|
1434
|
-
previousPageCursor: string;
|
|
1435
|
-
/**
|
|
1436
|
-
* Use the cursor to get the next page of results. Insert the cursor into the request and post it to get the next page.
|
|
1437
|
-
* The next page is a set of itineraries departing AFTER the last itinerary in this result.
|
|
1438
|
-
*
|
|
1439
|
-
*/
|
|
1440
|
-
nextPageCursor: string;
|
|
899
|
+
query: {
|
|
900
|
+
/**
|
|
901
|
+
* Optional. Default is 0 minutes.
|
|
902
|
+
*
|
|
903
|
+
* Additional transfer time reserved for each transfer in minutes.
|
|
904
|
+
*
|
|
905
|
+
*/
|
|
906
|
+
additionalTransferTime?: number;
|
|
907
|
+
/**
|
|
908
|
+
* Optional. Default is `false`.
|
|
909
|
+
*
|
|
910
|
+
* - `arriveBy=true`: the parameters `date` and `time` refer to the arrival time
|
|
911
|
+
* - `arriveBy=false`: the parameters `date` and `time` refer to the departure time
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
arriveBy?: boolean;
|
|
915
|
+
/**
|
|
916
|
+
* - true: Compute transfer polylines and step instructions.
|
|
917
|
+
* - false: Only return basic information (start time, end time, duration) for transfers.
|
|
918
|
+
*
|
|
919
|
+
*/
|
|
920
|
+
detailedTransfers: boolean;
|
|
921
|
+
/**
|
|
922
|
+
* Optional. Default is `WALK` which will compute walking routes as direct connections.
|
|
923
|
+
*
|
|
924
|
+
* Modes used for direction connections from start to destination without using transit.
|
|
925
|
+
* Results will be returned on the `direct` key.
|
|
926
|
+
*
|
|
927
|
+
* Note: Direct connections will only be returned on the first call. For paging calls, they can be omitted.
|
|
928
|
+
*
|
|
929
|
+
* Note: Transit connections that are slower than the fastest direct connection will not show up.
|
|
930
|
+
* This is being used as a cut-off during transit routing to speed up the search.
|
|
931
|
+
* To prevent this, it's possible to send two separate requests (one with only `transitModes` and one with only `directModes`).
|
|
932
|
+
*
|
|
933
|
+
* Note: the output `direct` array will stay empty if the input param `maxDirectTime` makes any direct trip impossible.
|
|
934
|
+
*
|
|
935
|
+
* Only non-transit modes such as `WALK`, `BIKE`, `CAR`, `BIKE_SHARING`, etc. can be used.
|
|
936
|
+
*
|
|
937
|
+
*/
|
|
938
|
+
directModes?: Array<Mode>;
|
|
939
|
+
/**
|
|
940
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
941
|
+
*
|
|
942
|
+
* Optional. Only applies to direct connections.
|
|
943
|
+
*
|
|
944
|
+
* A list of vehicle type form factors that are allowed to be used for direct connections.
|
|
945
|
+
* If empty (the default), all form factors are allowed.
|
|
946
|
+
* Example: `BICYCLE,SCOOTER_STANDING`.
|
|
947
|
+
*
|
|
948
|
+
*/
|
|
949
|
+
directRentalFormFactors?: Array<RentalFormFactor>;
|
|
950
|
+
/**
|
|
951
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
952
|
+
*
|
|
953
|
+
* Optional. Only applies to direct connections.
|
|
954
|
+
*
|
|
955
|
+
* A list of vehicle type form factors that are allowed to be used for direct connections.
|
|
956
|
+
* If empty (the default), all propulsion types are allowed.
|
|
957
|
+
* Example: `HUMAN,ELECTRIC,ELECTRIC_ASSIST`.
|
|
958
|
+
*
|
|
959
|
+
*/
|
|
960
|
+
directRentalPropulsionTypes?: Array<RentalPropulsionType>;
|
|
961
|
+
/**
|
|
962
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
963
|
+
*
|
|
964
|
+
* Optional. Only applies to direct connections.
|
|
965
|
+
*
|
|
966
|
+
* A list of rental providers that are allowed to be used for direct connections.
|
|
967
|
+
* If empty (the default), all providers are allowed.
|
|
968
|
+
*
|
|
969
|
+
*/
|
|
970
|
+
directRentalProviders?: Array<(string)>;
|
|
971
|
+
/**
|
|
972
|
+
* Optional. Default is `NONE`.
|
|
973
|
+
*
|
|
974
|
+
* Set an elevation cost profile, to penalize routes with incline.
|
|
975
|
+
* - `NONE`: No additional costs for elevations. This is the default behavior
|
|
976
|
+
* - `LOW`: Add a low cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if small detours are required.
|
|
977
|
+
* - `HIGH`: Add a high cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if larger detours are required.
|
|
978
|
+
*
|
|
979
|
+
* As using an elevation costs profile will increase the travel duration,
|
|
980
|
+
* routing through steep terrain may exceed the maximal allowed duration,
|
|
981
|
+
* causing a location to appear unreachable.
|
|
982
|
+
* Increasing the maximum travel time for these segments may resolve this issue.
|
|
983
|
+
*
|
|
984
|
+
* The profile is used for direct routing, on the first mile, and last mile.
|
|
985
|
+
*
|
|
986
|
+
* Elevation cost profiles are currently used by following street modes:
|
|
987
|
+
* - `BIKE`
|
|
988
|
+
*
|
|
989
|
+
*/
|
|
990
|
+
elevationCosts?: ElevationCosts;
|
|
991
|
+
/**
|
|
992
|
+
* Optional. Experimental. Default is `1.0`.
|
|
993
|
+
* Factor with which the duration of the fastest direct non-public-transit connection is multiplied.
|
|
994
|
+
* Values > 1.0 allow transit connections that are slower than the fastest direct non-public-transit connection to be found.
|
|
995
|
+
*
|
|
996
|
+
*/
|
|
997
|
+
fastestDirectFactor?: number;
|
|
998
|
+
/**
|
|
999
|
+
* Optional.
|
|
1000
|
+
* Factor with which the duration of the fastest slowDirect connection is multiplied.
|
|
1001
|
+
* Values > 1.0 allow connections that are slower than the fastest direct connection to be found.
|
|
1002
|
+
* Values < 1.0 will return all slowDirect connections.
|
|
1003
|
+
*
|
|
1004
|
+
*/
|
|
1005
|
+
fastestSlowDirectFactor?: number;
|
|
1006
|
+
/**
|
|
1007
|
+
* \`latitude,longitude[,level]\` tuple with
|
|
1008
|
+
* - latitude and longitude in degrees
|
|
1009
|
+
* - (optional) level: the OSM level (default: 0)
|
|
1010
|
+
*
|
|
1011
|
+
* OR
|
|
1012
|
+
*
|
|
1013
|
+
* stop id
|
|
1014
|
+
*
|
|
1015
|
+
*/
|
|
1016
|
+
fromPlace: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1019
|
+
*
|
|
1020
|
+
* Optional. Default is `false`.
|
|
1021
|
+
*
|
|
1022
|
+
* If set to `true`, the routing will ignore rental return constraints for direct connections,
|
|
1023
|
+
* allowing the rental vehicle to be parked anywhere.
|
|
1024
|
+
*
|
|
1025
|
+
*/
|
|
1026
|
+
ignoreDirectRentalReturnConstraints?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1029
|
+
*
|
|
1030
|
+
* Optional. Default is `false`.
|
|
1031
|
+
*
|
|
1032
|
+
* If set to `true`, the routing will ignore rental return constraints for the part from the last transit stop to the `to` coordinate,
|
|
1033
|
+
* allowing the rental vehicle to be parked anywhere.
|
|
1034
|
+
*
|
|
1035
|
+
*/
|
|
1036
|
+
ignorePostTransitRentalReturnConstraints?: boolean;
|
|
1037
|
+
/**
|
|
1038
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1039
|
+
*
|
|
1040
|
+
* Optional. Default is `false`.
|
|
1041
|
+
*
|
|
1042
|
+
* If set to `true`, the routing will ignore rental return constraints for the part from the `from` coordinate to the first transit stop,
|
|
1043
|
+
* allowing the rental vehicle to be parked anywhere.
|
|
1044
|
+
*
|
|
1045
|
+
*/
|
|
1046
|
+
ignorePreTransitRentalReturnConstraints?: boolean;
|
|
1047
|
+
/**
|
|
1048
|
+
* Optional. Default is `true`.
|
|
1049
|
+
*
|
|
1050
|
+
* Controls if a journey section with stay-seated transfers is returned:
|
|
1051
|
+
* - `joinInterlinedLegs=false`: as several legs (full information about all trip numbers, headsigns, etc.).
|
|
1052
|
+
* Legs that do not require a transfer (stay-seated transfer) are marked with `interlineWithPreviousLeg=true`.
|
|
1053
|
+
* - `joinInterlinedLegs=true` (default behavior): as only one joined leg containing all stops
|
|
1054
|
+
*
|
|
1055
|
+
*/
|
|
1056
|
+
joinInterlinedLegs?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1059
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1060
|
+
*
|
|
1061
|
+
*/
|
|
1062
|
+
language?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Optional. Experimental. Number of luggage pieces; base unit: airline cabin luggage (e.g. for ODM or price calculation)
|
|
1065
|
+
*
|
|
1066
|
+
*/
|
|
1067
|
+
luggage?: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* Optional. Default is 30min which is `1800`.
|
|
1070
|
+
* Maximum time in seconds for direct connections.
|
|
1071
|
+
*
|
|
1072
|
+
*/
|
|
1073
|
+
maxDirectTime?: number;
|
|
1074
|
+
/**
|
|
1075
|
+
* Optional. Default is 25 meters.
|
|
1076
|
+
*
|
|
1077
|
+
* Maximum matching distance in meters to match geo coordinates to the street network.
|
|
1078
|
+
*
|
|
1079
|
+
*/
|
|
1080
|
+
maxMatchingDistance?: number;
|
|
1081
|
+
/**
|
|
1082
|
+
* Optional. Default is 15min which is `900`.
|
|
1083
|
+
* Maximum time in seconds for the last street leg.
|
|
1084
|
+
*
|
|
1085
|
+
*/
|
|
1086
|
+
maxPostTransitTime?: number;
|
|
1087
|
+
/**
|
|
1088
|
+
* Optional. Default is 15min which is `900`.
|
|
1089
|
+
* Maximum time in seconds for the first street leg.
|
|
1090
|
+
*
|
|
1091
|
+
*/
|
|
1092
|
+
maxPreTransitTime?: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* The maximum number of allowed transfers (i.e. interchanges between transit legs,
|
|
1095
|
+
* pre- and postTransit do not count as transfers).
|
|
1096
|
+
* `maxTransfers=0` searches for direct transit connections without any transfers.
|
|
1097
|
+
* If you want to search only for non-transit connections (`FOOT`, `CAR`, etc.),
|
|
1098
|
+
* send an empty `transitModes` parameter instead.
|
|
1099
|
+
*
|
|
1100
|
+
* If not provided, the routing uses the server-side default value
|
|
1101
|
+
* which is hardcoded and very high to cover all use cases.
|
|
1102
|
+
*
|
|
1103
|
+
* *Warning*: Use with care. Setting this too low can lead to
|
|
1104
|
+
* optimal (e.g. the fastest) journeys not being found.
|
|
1105
|
+
* If this value is too low to reach the destination at all,
|
|
1106
|
+
* it can lead to slow routing performance.
|
|
1107
|
+
*
|
|
1108
|
+
* In plan endpoints before v3, the behavior is off by one,
|
|
1109
|
+
* i.e. `maxTransfers=0` only returns non-transit connections.
|
|
1110
|
+
*
|
|
1111
|
+
*/
|
|
1112
|
+
maxTransfers?: number;
|
|
1113
|
+
/**
|
|
1114
|
+
* The maximum travel time in minutes.
|
|
1115
|
+
* If not provided, the routing to uses the value
|
|
1116
|
+
* hardcoded in the server which is usually quite high.
|
|
1117
|
+
*
|
|
1118
|
+
* *Warning*: Use with care. Setting this too low can lead to
|
|
1119
|
+
* optimal (e.g. the least transfers) journeys not being found.
|
|
1120
|
+
* If this value is too low to reach the destination at all,
|
|
1121
|
+
* it can lead to slow routing performance.
|
|
1122
|
+
*
|
|
1123
|
+
*/
|
|
1124
|
+
maxTravelTime?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Optional. Default is 0 minutes.
|
|
1127
|
+
*
|
|
1128
|
+
* Minimum transfer time for each transfer in minutes.
|
|
1129
|
+
*
|
|
1130
|
+
*/
|
|
1131
|
+
minTransferTime?: number;
|
|
1132
|
+
/**
|
|
1133
|
+
* The minimum number of itineraries to compute.
|
|
1134
|
+
* This is only relevant if `timetableView=true`.
|
|
1135
|
+
* The default value is 5.
|
|
1136
|
+
*
|
|
1137
|
+
*/
|
|
1138
|
+
numItineraries?: number;
|
|
1139
|
+
/**
|
|
1140
|
+
* Use the cursor to go to the next "page" of itineraries.
|
|
1141
|
+
* Copy the cursor from the last response and keep the original request as is.
|
|
1142
|
+
* This will enable you to search for itineraries in the next or previous time-window.
|
|
1143
|
+
*
|
|
1144
|
+
*/
|
|
1145
|
+
pageCursor?: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* Optional. Experimental. Number of passengers (e.g. for ODM or price calculation)
|
|
1148
|
+
*/
|
|
1149
|
+
passengers?: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Optional. Default is `FOOT`.
|
|
1152
|
+
*
|
|
1153
|
+
* Accessibility profile to use for pedestrian routing in transfers
|
|
1154
|
+
* between transit connections, on the first mile, and last mile.
|
|
1155
|
+
*
|
|
1156
|
+
*/
|
|
1157
|
+
pedestrianProfile?: PedestrianProfile;
|
|
1158
|
+
/**
|
|
1159
|
+
* Optional. Default is `WALK`. Only applies if the `to` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directModes`).
|
|
1160
|
+
*
|
|
1161
|
+
* A list of modes that are allowed to be used from the last transit stop to the `to` coordinate. Example: `WALK,BIKE_SHARING`.
|
|
1162
|
+
*
|
|
1163
|
+
*/
|
|
1164
|
+
postTransitModes?: Array<Mode>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1167
|
+
*
|
|
1168
|
+
* Optional. Only applies if the `to` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalFormFactors`).
|
|
1169
|
+
*
|
|
1170
|
+
* A list of vehicle type form factors that are allowed to be used from the last transit stop to the `to` coordinate.
|
|
1171
|
+
* If empty (the default), all form factors are allowed.
|
|
1172
|
+
* Example: `BICYCLE,SCOOTER_STANDING`.
|
|
1173
|
+
*
|
|
1174
|
+
*/
|
|
1175
|
+
postTransitRentalFormFactors?: Array<RentalFormFactor>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1178
|
+
*
|
|
1179
|
+
* Optional. Only applies if the `to` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalPropulsionTypes`).
|
|
1180
|
+
*
|
|
1181
|
+
* A list of vehicle propulsion types that are allowed to be used from the last transit stop to the `to` coordinate.
|
|
1182
|
+
* If empty (the default), all propulsion types are allowed.
|
|
1183
|
+
* Example: `HUMAN,ELECTRIC,ELECTRIC_ASSIST`.
|
|
1184
|
+
*
|
|
1185
|
+
*/
|
|
1186
|
+
postTransitRentalPropulsionTypes?: Array<RentalPropulsionType>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1189
|
+
*
|
|
1190
|
+
* Optional. Only applies if the `to` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalProviders`).
|
|
1191
|
+
*
|
|
1192
|
+
* A list of rental providers that are allowed to be used from the last transit stop to the `to` coordinate.
|
|
1193
|
+
* If empty (the default), all providers are allowed.
|
|
1194
|
+
*
|
|
1195
|
+
*/
|
|
1196
|
+
postTransitRentalProviders?: Array<(string)>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Optional. Default is `WALK`. Only applies if the `from` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directModes`).
|
|
1199
|
+
*
|
|
1200
|
+
* A list of modes that are allowed to be used from the `from` coordinate to the first transit stop. Example: `WALK,BIKE_SHARING`.
|
|
1201
|
+
*
|
|
1202
|
+
*/
|
|
1203
|
+
preTransitModes?: Array<Mode>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1206
|
+
*
|
|
1207
|
+
* Optional. Only applies if the `from` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalFormFactors`).
|
|
1208
|
+
*
|
|
1209
|
+
* A list of vehicle type form factors that are allowed to be used from the `from` coordinate to the first transit stop.
|
|
1210
|
+
* If empty (the default), all form factors are allowed.
|
|
1211
|
+
* Example: `BICYCLE,SCOOTER_STANDING`.
|
|
1212
|
+
*
|
|
1213
|
+
*/
|
|
1214
|
+
preTransitRentalFormFactors?: Array<RentalFormFactor>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1217
|
+
*
|
|
1218
|
+
* Optional. Only applies if the `from` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalPropulsionTypes`).
|
|
1219
|
+
*
|
|
1220
|
+
* A list of vehicle propulsion types that are allowed to be used from the `from` coordinate to the first transit stop.
|
|
1221
|
+
* If empty (the default), all propulsion types are allowed.
|
|
1222
|
+
* Example: `HUMAN,ELECTRIC,ELECTRIC_ASSIST`.
|
|
1223
|
+
*
|
|
1224
|
+
*/
|
|
1225
|
+
preTransitRentalPropulsionTypes?: Array<RentalPropulsionType>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1228
|
+
*
|
|
1229
|
+
* Optional. Only applies if the `from` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directRentalProviders`).
|
|
1230
|
+
*
|
|
1231
|
+
* A list of rental providers that are allowed to be used from the `from` coordinate to the first transit stop.
|
|
1232
|
+
* If empty (the default), all providers are allowed.
|
|
1233
|
+
*
|
|
1234
|
+
*/
|
|
1235
|
+
preTransitRentalProviders?: Array<(string)>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Optional. Default is `false`.
|
|
1238
|
+
*
|
|
1239
|
+
* If set to `true`, all used transit trips are required to allow bike carriage.
|
|
1240
|
+
*
|
|
1241
|
+
*/
|
|
1242
|
+
requireBikeTransport?: boolean;
|
|
1243
|
+
/**
|
|
1244
|
+
* Optional. Default is `false`.
|
|
1245
|
+
*
|
|
1246
|
+
* If set to `true`, all used transit trips are required to allow car carriage.
|
|
1247
|
+
*
|
|
1248
|
+
*/
|
|
1249
|
+
requireCarTransport?: boolean;
|
|
1250
|
+
/**
|
|
1251
|
+
* Optional. Default is 2 hours which is `7200`.
|
|
1252
|
+
*
|
|
1253
|
+
* The length of the search-window in seconds. Default value two hours.
|
|
1254
|
+
*
|
|
1255
|
+
* - `arriveBy=true`: number of seconds between the earliest departure time and latest departure time
|
|
1256
|
+
* - `arriveBy=false`: number of seconds between the earliest arrival time and the latest arrival time
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
1259
|
+
searchWindow?: number;
|
|
1260
|
+
/**
|
|
1261
|
+
* Optional. Experimental. Adds overtaken direct public transit connections.
|
|
1262
|
+
*/
|
|
1263
|
+
slowDirect?: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* Optional. Defaults to the current time.
|
|
1266
|
+
*
|
|
1267
|
+
* Departure time ($arriveBy=false) / arrival date ($arriveBy=true),
|
|
1268
|
+
*
|
|
1269
|
+
*/
|
|
1270
|
+
time?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Optional. Query timeout in seconds.
|
|
1273
|
+
*/
|
|
1274
|
+
timeout?: number;
|
|
1275
|
+
/**
|
|
1276
|
+
* Optional. Default is `true`.
|
|
1277
|
+
*
|
|
1278
|
+
* Search for the best trip options within a time window.
|
|
1279
|
+
* If true two itineraries are considered optimal
|
|
1280
|
+
* if one is better on arrival time (earliest wins)
|
|
1281
|
+
* and the other is better on departure time (latest wins).
|
|
1282
|
+
* In combination with arriveBy this parameter cover the following use cases:
|
|
1283
|
+
*
|
|
1284
|
+
* `timetable=false` = waiting for the first transit departure/arrival is considered travel time:
|
|
1285
|
+
* - `arriveBy=true`: event (e.g. a meeting) starts at 10:00 am,
|
|
1286
|
+
* compute the best journeys that arrive by that time (maximizes departure time)
|
|
1287
|
+
* - `arriveBy=false`: event (e.g. a meeting) ends at 11:00 am,
|
|
1288
|
+
* compute the best journeys that depart after that time
|
|
1289
|
+
*
|
|
1290
|
+
* `timetable=true` = optimize "later departure" + "earlier arrival" and give all options over a time window:
|
|
1291
|
+
* - `arriveBy=true`: the time window around `date` and `time` refers to the arrival time window
|
|
1292
|
+
* - `arriveBy=false`: the time window around `date` and `time` refers to the departure time window
|
|
1293
|
+
*
|
|
1294
|
+
*/
|
|
1295
|
+
timetableView?: boolean;
|
|
1296
|
+
/**
|
|
1297
|
+
* \`latitude,longitude[,level]\` tuple with
|
|
1298
|
+
* - latitude and longitude in degrees
|
|
1299
|
+
* - (optional) level: the OSM level (default: 0)
|
|
1300
|
+
*
|
|
1301
|
+
* OR
|
|
1302
|
+
*
|
|
1303
|
+
* stop id
|
|
1304
|
+
*
|
|
1305
|
+
*/
|
|
1306
|
+
toPlace: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Optional. Default is 1.0
|
|
1309
|
+
*
|
|
1310
|
+
* Factor to multiply minimum required transfer times with.
|
|
1311
|
+
* Values smaller than 1.0 are not supported.
|
|
1312
|
+
*
|
|
1313
|
+
*/
|
|
1314
|
+
transferTimeFactor?: number;
|
|
1315
|
+
/**
|
|
1316
|
+
* Optional. Default is `TRANSIT` which allows all transit modes (no restriction).
|
|
1317
|
+
* Allowed modes for the transit part. If empty, no transit connections will be computed.
|
|
1318
|
+
* For example, this can be used to allow only `METRO,SUBWAY,TRAM`.
|
|
1319
|
+
*
|
|
1320
|
+
*/
|
|
1321
|
+
transitModes?: Array<Mode>;
|
|
1322
|
+
/**
|
|
1323
|
+
* Optional. Default is `false`.
|
|
1324
|
+
*
|
|
1325
|
+
* Whether to use transfers routed on OpenStreetMap data.
|
|
1326
|
+
*
|
|
1327
|
+
*/
|
|
1328
|
+
useRoutedTransfers?: boolean;
|
|
1329
|
+
/**
|
|
1330
|
+
* List of via stops to visit (only stop IDs, no coordinates allowed for now).
|
|
1331
|
+
* Also see the optional parameter `viaMinimumStay` to set a set a minimum stay duration for each via stop.
|
|
1332
|
+
*
|
|
1333
|
+
*/
|
|
1334
|
+
via?: Array<(string)>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Optional. If not set, the default is `0,0` - no stay required.
|
|
1337
|
+
*
|
|
1338
|
+
* For each `via` stop a minimum stay duration in minutes.
|
|
1339
|
+
*
|
|
1340
|
+
* The value `0` signals that it's allowed to stay in the same trip.
|
|
1341
|
+
* This enables via stays without counting a transfer and can lead
|
|
1342
|
+
* to better connections with less transfers. Transfer connections can
|
|
1343
|
+
* still be found with `viaMinimumStay=0`.
|
|
1344
|
+
*
|
|
1345
|
+
*/
|
|
1346
|
+
viaMinimumStay?: Array<(number)>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Optional. Experimental. If set to true, the response will contain fare information.
|
|
1349
|
+
*/
|
|
1350
|
+
withFares?: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* Optional. Include intermediate stops where passengers can not alight/board according to schedule.
|
|
1353
|
+
*/
|
|
1354
|
+
withScheduledSkippedStops?: boolean;
|
|
1355
|
+
};
|
|
1441
1356
|
};
|
|
1357
|
+
type PlanResponse = ({
|
|
1358
|
+
/**
|
|
1359
|
+
* the routing query
|
|
1360
|
+
*/
|
|
1361
|
+
requestParameters: {
|
|
1362
|
+
[key: string]: (string);
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* debug statistics
|
|
1366
|
+
*/
|
|
1367
|
+
debugOutput: {
|
|
1368
|
+
[key: string]: (number);
|
|
1369
|
+
};
|
|
1370
|
+
from: Place;
|
|
1371
|
+
to: Place;
|
|
1372
|
+
/**
|
|
1373
|
+
* Direct trips by `WALK`, `BIKE`, `CAR`, etc. without time-dependency.
|
|
1374
|
+
* The starting time (`arriveBy=false`) / arrival time (`arriveBy=true`) is always the queried `time` parameter (set to \"now\" if not set).
|
|
1375
|
+
* But all `direct` connections are meant to be independent of absolute times.
|
|
1376
|
+
*
|
|
1377
|
+
*/
|
|
1378
|
+
direct: Array<Itinerary>;
|
|
1379
|
+
/**
|
|
1380
|
+
* list of itineraries
|
|
1381
|
+
*/
|
|
1382
|
+
itineraries: Array<Itinerary>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Use the cursor to get the previous page of results. Insert the cursor into the request and post it to get the previous page.
|
|
1385
|
+
* The previous page is a set of itineraries departing BEFORE the first itinerary in the result for a depart after search. When using the default sort order the previous set of itineraries is inserted before the current result.
|
|
1386
|
+
*
|
|
1387
|
+
*/
|
|
1388
|
+
previousPageCursor: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* Use the cursor to get the next page of results. Insert the cursor into the request and post it to get the next page.
|
|
1391
|
+
* The next page is a set of itineraries departing AFTER the last itinerary in this result.
|
|
1392
|
+
*
|
|
1393
|
+
*/
|
|
1394
|
+
nextPageCursor: string;
|
|
1395
|
+
});
|
|
1442
1396
|
type PlanError = unknown;
|
|
1443
1397
|
type OneToManyData = {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1398
|
+
query: {
|
|
1399
|
+
/**
|
|
1400
|
+
* true = many to one
|
|
1401
|
+
* false = one to many
|
|
1402
|
+
*
|
|
1403
|
+
*/
|
|
1404
|
+
arriveBy: boolean;
|
|
1405
|
+
/**
|
|
1406
|
+
* Optional. Default is `NONE`.
|
|
1407
|
+
*
|
|
1408
|
+
* Set an elevation cost profile, to penalize routes with incline.
|
|
1409
|
+
* - `NONE`: No additional costs for elevations. This is the default behavior
|
|
1410
|
+
* - `LOW`: Add a low cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if small detours are required.
|
|
1411
|
+
* - `HIGH`: Add a high cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if larger detours are required.
|
|
1412
|
+
*
|
|
1413
|
+
* As using an elevation costs profile will increase the travel duration,
|
|
1414
|
+
* routing through steep terrain may exceed the maximal allowed duration,
|
|
1415
|
+
* causing a location to appear unreachable.
|
|
1416
|
+
* Increasing the maximum travel time for these segments may resolve this issue.
|
|
1417
|
+
*
|
|
1418
|
+
* Elevation cost profiles are currently used by following street modes:
|
|
1419
|
+
* - `BIKE`
|
|
1420
|
+
*
|
|
1421
|
+
*/
|
|
1422
|
+
elevationCosts?: ElevationCosts;
|
|
1423
|
+
/**
|
|
1424
|
+
* geo locations as latitude;longitude,latitude;longitude,...
|
|
1425
|
+
*/
|
|
1426
|
+
many: Array<(string)>;
|
|
1427
|
+
/**
|
|
1428
|
+
* maximum travel time in seconds
|
|
1429
|
+
*/
|
|
1430
|
+
max: number;
|
|
1431
|
+
/**
|
|
1432
|
+
* maximum matching distance in meters to match geo coordinates to the street network
|
|
1433
|
+
*/
|
|
1434
|
+
maxMatchingDistance: number;
|
|
1435
|
+
/**
|
|
1436
|
+
* routing profile to use (currently supported: \`WALK\`, \`BIKE\`, \`CAR\`)
|
|
1437
|
+
*
|
|
1438
|
+
*/
|
|
1439
|
+
mode: Mode;
|
|
1440
|
+
/**
|
|
1441
|
+
* geo location as latitude;longitude
|
|
1442
|
+
*/
|
|
1443
|
+
one: string;
|
|
1444
|
+
};
|
|
1491
1445
|
};
|
|
1492
|
-
type OneToManyResponse = Array<Duration
|
|
1446
|
+
type OneToManyResponse = (Array<Duration>);
|
|
1493
1447
|
type OneToManyError = unknown;
|
|
1494
1448
|
type OneToAllData = {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1449
|
+
query: {
|
|
1450
|
+
/**
|
|
1451
|
+
* Optional. Default is 0 minutes.
|
|
1452
|
+
*
|
|
1453
|
+
* Additional transfer time reserved for each transfer in minutes.
|
|
1454
|
+
*
|
|
1455
|
+
*/
|
|
1456
|
+
additionalTransferTime?: number;
|
|
1457
|
+
/**
|
|
1458
|
+
* true = all to one,
|
|
1459
|
+
* false = one to all
|
|
1460
|
+
*
|
|
1461
|
+
*/
|
|
1462
|
+
arriveBy?: boolean;
|
|
1463
|
+
/**
|
|
1464
|
+
* Optional. Default is `NONE`.
|
|
1465
|
+
*
|
|
1466
|
+
* Set an elevation cost profile, to penalize routes with incline.
|
|
1467
|
+
* - `NONE`: No additional costs for elevations. This is the default behavior
|
|
1468
|
+
* - `LOW`: Add a low cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if small detours are required.
|
|
1469
|
+
* - `HIGH`: Add a high cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if larger detours are required.
|
|
1470
|
+
*
|
|
1471
|
+
* As using an elevation costs profile will increase the travel duration,
|
|
1472
|
+
* routing through steep terrain may exceed the maximal allowed duration,
|
|
1473
|
+
* causing a location to appear unreachable.
|
|
1474
|
+
* Increasing the maximum travel time for these segments may resolve this issue.
|
|
1475
|
+
*
|
|
1476
|
+
* The profile is used for routing on both the first and last mile.
|
|
1477
|
+
*
|
|
1478
|
+
* Elevation cost profiles are currently used by following street modes:
|
|
1479
|
+
* - `BIKE`
|
|
1480
|
+
*
|
|
1481
|
+
*/
|
|
1482
|
+
elevationCosts?: ElevationCosts;
|
|
1483
|
+
/**
|
|
1484
|
+
* Optional. Default is 25 meters.
|
|
1485
|
+
*
|
|
1486
|
+
* Maximum matching distance in meters to match geo coordinates to the street network.
|
|
1487
|
+
*
|
|
1488
|
+
*/
|
|
1489
|
+
maxMatchingDistance?: number;
|
|
1490
|
+
/**
|
|
1491
|
+
* Optional. Default is 15min which is `900`.
|
|
1492
|
+
* - `arriveBy=true`: Maximum time in seconds for the street leg at `one` location.
|
|
1493
|
+
* - `arriveBy=false`: Currently not used
|
|
1494
|
+
*
|
|
1495
|
+
*/
|
|
1496
|
+
maxPostTransitTime?: number;
|
|
1497
|
+
/**
|
|
1498
|
+
* Optional. Default is 15min which is `900`.
|
|
1499
|
+
* - `arriveBy=true`: Currently not used
|
|
1500
|
+
* - `arriveBy=false`: Maximum time in seconds for the street leg at `one` location.
|
|
1501
|
+
*
|
|
1502
|
+
*/
|
|
1503
|
+
maxPreTransitTime?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* The maximum number of allowed transfers (i.e. interchanges between transit legs,
|
|
1506
|
+
* pre- and postTransit do not count as transfers).
|
|
1507
|
+
* `maxTransfers=0` searches for direct transit connections without any transfers.
|
|
1508
|
+
* If you want to search only for non-transit connections (`FOOT`, `CAR`, etc.),
|
|
1509
|
+
* send an empty `transitModes` parameter instead.
|
|
1510
|
+
*
|
|
1511
|
+
* If not provided, the routing uses the server-side default value
|
|
1512
|
+
* which is hardcoded and very high to cover all use cases.
|
|
1513
|
+
*
|
|
1514
|
+
* *Warning*: Use with care. Setting this too low can lead to
|
|
1515
|
+
* optimal (e.g. the fastest) journeys not being found.
|
|
1516
|
+
* If this value is too low to reach the destination at all,
|
|
1517
|
+
* it can lead to slow routing performance.
|
|
1518
|
+
*
|
|
1519
|
+
* In plan endpoints before v3, the behavior is off by one,
|
|
1520
|
+
* i.e. `maxTransfers=0` only returns non-transit connections.
|
|
1521
|
+
*
|
|
1522
|
+
*/
|
|
1523
|
+
maxTransfers?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* maximum travel time in minutes
|
|
1526
|
+
*/
|
|
1527
|
+
maxTravelTime: number;
|
|
1528
|
+
/**
|
|
1529
|
+
* Optional. Default is 0 minutes.
|
|
1530
|
+
*
|
|
1531
|
+
* Minimum transfer time for each transfer in minutes.
|
|
1532
|
+
*
|
|
1533
|
+
*/
|
|
1534
|
+
minTransferTime?: number;
|
|
1535
|
+
/**
|
|
1536
|
+
* \`latitude,longitude[,level]\` tuple with
|
|
1537
|
+
* - latitude and longitude in degrees
|
|
1538
|
+
* - (optional) level: the OSM level (default: 0)
|
|
1539
|
+
*
|
|
1540
|
+
* OR
|
|
1541
|
+
*
|
|
1542
|
+
* stop id
|
|
1543
|
+
*
|
|
1544
|
+
*/
|
|
1545
|
+
one: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* Optional. Default is `FOOT`.
|
|
1548
|
+
*
|
|
1549
|
+
* Accessibility profile to use for pedestrian routing in transfers
|
|
1550
|
+
* between transit connections and the first and last mile respectively.
|
|
1551
|
+
*
|
|
1552
|
+
*/
|
|
1553
|
+
pedestrianProfile?: PedestrianProfile;
|
|
1554
|
+
/**
|
|
1555
|
+
* Optional. Default is `WALK`. The behavior depends on whether `arriveBy` is set:
|
|
1556
|
+
* - `arriveBy=true`: Only applies if the `one` place is a coordinate (not a transit stop).
|
|
1557
|
+
* - `arriveBy=false`: Currently not used
|
|
1558
|
+
*
|
|
1559
|
+
* A list of modes that are allowed to be used from the last transit stop to the `to` coordinate. Example: `WALK,BIKE_SHARING`.
|
|
1560
|
+
*
|
|
1561
|
+
*/
|
|
1562
|
+
postTransitModes?: Array<Mode>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Optional. Default is `WALK`. The behavior depends on whether `arriveBy` is set:
|
|
1565
|
+
* - `arriveBy=true`: Currently not used
|
|
1566
|
+
* - `arriveBy=false`: Only applies if the `one` place is a coordinate (not a transit stop).
|
|
1567
|
+
*
|
|
1568
|
+
* A list of modes that are allowed to be used from the last transit stop to the `to` coordinate. Example: `WALK,BIKE_SHARING`.
|
|
1569
|
+
*
|
|
1570
|
+
*/
|
|
1571
|
+
preTransitModes?: Array<Mode>;
|
|
1572
|
+
/**
|
|
1573
|
+
* Optional. Default is `false`.
|
|
1574
|
+
*
|
|
1575
|
+
* If set to `true`, all used transit trips are required to allow bike carriage.
|
|
1576
|
+
*
|
|
1577
|
+
*/
|
|
1578
|
+
requireBikeTransport?: boolean;
|
|
1579
|
+
/**
|
|
1580
|
+
* Optional. Default is `false`.
|
|
1581
|
+
*
|
|
1582
|
+
* If set to `true`, all used transit trips are required to allow car carriage.
|
|
1583
|
+
*
|
|
1584
|
+
*/
|
|
1585
|
+
requireCarTransport?: boolean;
|
|
1586
|
+
/**
|
|
1587
|
+
* Optional. Defaults to the current time.
|
|
1588
|
+
*
|
|
1589
|
+
* Departure time ($arriveBy=false) / arrival date ($arriveBy=true),
|
|
1590
|
+
*
|
|
1591
|
+
*/
|
|
1592
|
+
time?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Optional. Default is 1.0
|
|
1595
|
+
*
|
|
1596
|
+
* Factor to multiply minimum required transfer times with.
|
|
1597
|
+
* Values smaller than 1.0 are not supported.
|
|
1598
|
+
*
|
|
1599
|
+
*/
|
|
1600
|
+
transferTimeFactor?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* Optional. Default is `TRANSIT` which allows all transit modes (no restriction).
|
|
1603
|
+
* Allowed modes for the transit part. If empty, no transit connections will be computed.
|
|
1604
|
+
* For example, this can be used to allow only `METRO,SUBWAY,TRAM`.
|
|
1605
|
+
*
|
|
1606
|
+
*/
|
|
1607
|
+
transitModes?: Array<Mode>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Optional. Default is `false`.
|
|
1610
|
+
*
|
|
1611
|
+
* Whether to use transfers routed on OpenStreetMap data.
|
|
1612
|
+
*
|
|
1613
|
+
*/
|
|
1614
|
+
useRoutedTransfers?: boolean;
|
|
1615
|
+
};
|
|
1662
1616
|
};
|
|
1663
|
-
type OneToAllResponse = Reachable;
|
|
1617
|
+
type OneToAllResponse = (Reachable);
|
|
1664
1618
|
type OneToAllError = unknown;
|
|
1665
1619
|
type ReverseGeocodeData = {
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1620
|
+
query: {
|
|
1621
|
+
/**
|
|
1622
|
+
* latitude, longitude in degrees
|
|
1623
|
+
*/
|
|
1624
|
+
place: string;
|
|
1625
|
+
/**
|
|
1626
|
+
* Optional. Default is all types.
|
|
1627
|
+
*
|
|
1628
|
+
* Only return results of the given type.
|
|
1629
|
+
* For example, this can be used to allow only `ADDRESS` and `STOP` results.
|
|
1630
|
+
*
|
|
1631
|
+
*/
|
|
1632
|
+
type?: LocationType;
|
|
1633
|
+
};
|
|
1680
1634
|
};
|
|
1681
|
-
type ReverseGeocodeResponse = Array<Match
|
|
1635
|
+
type ReverseGeocodeResponse = (Array<Match>);
|
|
1682
1636
|
type ReverseGeocodeError = unknown;
|
|
1683
1637
|
type GeocodeData = {
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1638
|
+
query: {
|
|
1639
|
+
/**
|
|
1640
|
+
* language tags as used in OpenStreetMap
|
|
1641
|
+
* (usually ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1642
|
+
*
|
|
1643
|
+
*/
|
|
1644
|
+
language?: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Optional. Used for biasing results towards the coordinate.
|
|
1647
|
+
*
|
|
1648
|
+
* Format: latitude,longitude in degrees
|
|
1649
|
+
*
|
|
1650
|
+
*/
|
|
1651
|
+
place?: string;
|
|
1652
|
+
/**
|
|
1653
|
+
* Optional. Used for biasing results towards the coordinate. Higher number = higher bias.
|
|
1654
|
+
*
|
|
1655
|
+
*/
|
|
1656
|
+
placeBias?: number;
|
|
1657
|
+
/**
|
|
1658
|
+
* the (potentially partially typed) address to resolve
|
|
1659
|
+
*/
|
|
1660
|
+
text: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Optional. Default is all types.
|
|
1663
|
+
*
|
|
1664
|
+
* Only return results of the given types.
|
|
1665
|
+
* For example, this can be used to allow only `ADDRESS` and `STOP` results.
|
|
1666
|
+
*
|
|
1667
|
+
*/
|
|
1668
|
+
type?: LocationType;
|
|
1669
|
+
};
|
|
1716
1670
|
};
|
|
1717
|
-
type GeocodeResponse = Array<Match
|
|
1671
|
+
type GeocodeResponse = (Array<Match>);
|
|
1718
1672
|
type GeocodeError = unknown;
|
|
1719
1673
|
type TripData = {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1674
|
+
query: {
|
|
1675
|
+
/**
|
|
1676
|
+
* Optional. Default is `true`.
|
|
1677
|
+
*
|
|
1678
|
+
* Controls if a trip with stay-seated transfers is returned:
|
|
1679
|
+
* - `joinInterlinedLegs=false`: as several legs (full information about all trip numbers, headsigns, etc.).
|
|
1680
|
+
* Legs that do not require a transfer (stay-seated transfer) are marked with `interlineWithPreviousLeg=true`.
|
|
1681
|
+
* - `joinInterlinedLegs=true` (default behavior): as only one joined leg containing all stops
|
|
1682
|
+
*
|
|
1683
|
+
*/
|
|
1684
|
+
joinInterlinedLegs?: boolean;
|
|
1685
|
+
/**
|
|
1686
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1687
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1688
|
+
*
|
|
1689
|
+
*/
|
|
1690
|
+
language?: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* trip identifier (e.g. from an itinerary leg or stop event)
|
|
1693
|
+
*/
|
|
1694
|
+
tripId: string;
|
|
1695
|
+
/**
|
|
1696
|
+
* Optional. Include intermediate stops where passengers can not alight/board according to schedule.
|
|
1697
|
+
*/
|
|
1698
|
+
withScheduledSkippedStops?: boolean;
|
|
1699
|
+
};
|
|
1730
1700
|
};
|
|
1731
|
-
type TripResponse = Itinerary;
|
|
1701
|
+
type TripResponse = (Itinerary);
|
|
1732
1702
|
type TripError = unknown;
|
|
1733
1703
|
type StoptimesData = {
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* metadata of the requested stop
|
|
1815
|
-
*/
|
|
1816
|
-
place: Place;
|
|
1817
|
-
/**
|
|
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.
|
|
1819
|
-
* The previous page is a set of stop times BEFORE the first stop time in the result.
|
|
1820
|
-
*
|
|
1821
|
-
*/
|
|
1822
|
-
previousPageCursor: string;
|
|
1823
|
-
/**
|
|
1824
|
-
* Use the cursor to get the next page of results. Insert the cursor into the request and post it to get the next page.
|
|
1825
|
-
* The next page is a set of stop times AFTER the last stop time in this result.
|
|
1826
|
-
*
|
|
1827
|
-
*/
|
|
1828
|
-
nextPageCursor: string;
|
|
1704
|
+
query: {
|
|
1705
|
+
/**
|
|
1706
|
+
* Optional. Default is `false`.
|
|
1707
|
+
*
|
|
1708
|
+
* - `arriveBy=true`: the parameters `date` and `time` refer to the arrival time
|
|
1709
|
+
* - `arriveBy=false`: the parameters `date` and `time` refer to the departure time
|
|
1710
|
+
*
|
|
1711
|
+
*/
|
|
1712
|
+
arriveBy?: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* This parameter will be ignored in case `pageCursor` is set.
|
|
1715
|
+
*
|
|
1716
|
+
* Optional. Default is
|
|
1717
|
+
* - `LATER` for `arriveBy=false`
|
|
1718
|
+
* - `EARLIER` for `arriveBy=true`
|
|
1719
|
+
*
|
|
1720
|
+
* The response will contain the next `n` arrivals / departures
|
|
1721
|
+
* in case `EARLIER` is selected and the previous `n`
|
|
1722
|
+
* arrivals / departures if `LATER` is selected.
|
|
1723
|
+
*
|
|
1724
|
+
*/
|
|
1725
|
+
direction?: 'EARLIER' | 'LATER';
|
|
1726
|
+
/**
|
|
1727
|
+
* Optional. Default is `false`.
|
|
1728
|
+
*
|
|
1729
|
+
* If set to `true`, only stations that are phyiscally in the radius are considered.
|
|
1730
|
+
* If set to `false`, additionally to the stations in the radius, equivalences with the same name and children are considered.
|
|
1731
|
+
*
|
|
1732
|
+
*/
|
|
1733
|
+
exactRadius?: boolean;
|
|
1734
|
+
/**
|
|
1735
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1736
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1737
|
+
*
|
|
1738
|
+
*/
|
|
1739
|
+
language?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* Optional. Default is all transit modes.
|
|
1742
|
+
*
|
|
1743
|
+
* Only return arrivals/departures of the given modes.
|
|
1744
|
+
*
|
|
1745
|
+
*/
|
|
1746
|
+
mode?: Array<Mode>;
|
|
1747
|
+
/**
|
|
1748
|
+
* the number of events
|
|
1749
|
+
*/
|
|
1750
|
+
n: number;
|
|
1751
|
+
/**
|
|
1752
|
+
* Use the cursor to go to the next "page" of stop times.
|
|
1753
|
+
* Copy the cursor from the last response and keep the original request as is.
|
|
1754
|
+
* This will enable you to search for stop times in the next or previous time-window.
|
|
1755
|
+
*
|
|
1756
|
+
*/
|
|
1757
|
+
pageCursor?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* Optional. Radius in meters.
|
|
1760
|
+
*
|
|
1761
|
+
* Default is that only stop times of the parent of the stop itself
|
|
1762
|
+
* and all stops with the same name (+ their child stops) are returned.
|
|
1763
|
+
*
|
|
1764
|
+
* If set, all stops at parent stations and their child stops in the specified radius
|
|
1765
|
+
* are returned.
|
|
1766
|
+
*
|
|
1767
|
+
*/
|
|
1768
|
+
radius?: number;
|
|
1769
|
+
/**
|
|
1770
|
+
* stop id of the stop to retrieve departures/arrivals for
|
|
1771
|
+
*/
|
|
1772
|
+
stopId: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* Optional. Defaults to the current time.
|
|
1775
|
+
*
|
|
1776
|
+
*/
|
|
1777
|
+
time?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Optional. Include stoptimes where passengers can not alight/board according to schedule.
|
|
1780
|
+
*/
|
|
1781
|
+
withScheduledSkippedStops?: boolean;
|
|
1782
|
+
};
|
|
1829
1783
|
};
|
|
1784
|
+
type StoptimesResponse = ({
|
|
1785
|
+
/**
|
|
1786
|
+
* list of stop times
|
|
1787
|
+
*/
|
|
1788
|
+
stopTimes: Array<StopTime>;
|
|
1789
|
+
/**
|
|
1790
|
+
* metadata of the requested stop
|
|
1791
|
+
*/
|
|
1792
|
+
place: Place;
|
|
1793
|
+
/**
|
|
1794
|
+
* Use the cursor to get the previous page of results. Insert the cursor into the request and post it to get the previous page.
|
|
1795
|
+
* The previous page is a set of stop times BEFORE the first stop time in the result.
|
|
1796
|
+
*
|
|
1797
|
+
*/
|
|
1798
|
+
previousPageCursor: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* Use the cursor to get the next page of results. Insert the cursor into the request and post it to get the next page.
|
|
1801
|
+
* The next page is a set of stop times AFTER the last stop time in this result.
|
|
1802
|
+
*
|
|
1803
|
+
*/
|
|
1804
|
+
nextPageCursor: string;
|
|
1805
|
+
});
|
|
1830
1806
|
type StoptimesError = unknown;
|
|
1831
1807
|
type TripsData = {
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1808
|
+
query: {
|
|
1809
|
+
/**
|
|
1810
|
+
* end if the time window
|
|
1811
|
+
*/
|
|
1812
|
+
endTime: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* latitude,longitude pair of the upper left coordinate
|
|
1815
|
+
*/
|
|
1816
|
+
max: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* latitude,longitude pair of the lower right coordinate
|
|
1819
|
+
*/
|
|
1820
|
+
min: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* start of the time window
|
|
1823
|
+
*/
|
|
1824
|
+
startTime: string;
|
|
1825
|
+
/**
|
|
1826
|
+
* current zoom level
|
|
1827
|
+
*/
|
|
1828
|
+
zoom: number;
|
|
1829
|
+
};
|
|
1854
1830
|
};
|
|
1855
|
-
type TripsResponse = Array<TripSegment
|
|
1831
|
+
type TripsResponse = (Array<TripSegment>);
|
|
1856
1832
|
type TripsError = unknown;
|
|
1857
|
-
type InitialResponse = {
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
};
|
|
1833
|
+
type InitialResponse = ({
|
|
1834
|
+
/**
|
|
1835
|
+
* latitude
|
|
1836
|
+
*/
|
|
1837
|
+
lat: number;
|
|
1838
|
+
/**
|
|
1839
|
+
* longitude
|
|
1840
|
+
*/
|
|
1841
|
+
lon: number;
|
|
1842
|
+
/**
|
|
1843
|
+
* zoom level
|
|
1844
|
+
*/
|
|
1845
|
+
zoom: number;
|
|
1846
|
+
});
|
|
1871
1847
|
type InitialError = unknown;
|
|
1872
1848
|
type StopsData = {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1849
|
+
query: {
|
|
1850
|
+
/**
|
|
1851
|
+
* latitude,longitude pair of the upper left coordinate
|
|
1852
|
+
*/
|
|
1853
|
+
max: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* latitude,longitude pair of the lower right coordinate
|
|
1856
|
+
*/
|
|
1857
|
+
min: string;
|
|
1858
|
+
};
|
|
1883
1859
|
};
|
|
1884
|
-
type StopsResponse = Array<Place
|
|
1860
|
+
type StopsResponse = (Array<Place>);
|
|
1885
1861
|
type StopsError = unknown;
|
|
1886
1862
|
type LevelsData = {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1863
|
+
query: {
|
|
1864
|
+
/**
|
|
1865
|
+
* latitude,longitude pair of the upper left coordinate
|
|
1866
|
+
*/
|
|
1867
|
+
max: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* latitude,longitude pair of the lower right coordinate
|
|
1870
|
+
*/
|
|
1871
|
+
min: string;
|
|
1872
|
+
};
|
|
1897
1873
|
};
|
|
1898
|
-
type LevelsResponse = Array<number
|
|
1874
|
+
type LevelsResponse = (Array<(number)>);
|
|
1899
1875
|
type LevelsError = unknown;
|
|
1900
1876
|
type TransfersData = {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
};
|
|
1908
|
-
type TransfersResponse = {
|
|
1909
|
-
place: Place;
|
|
1910
|
-
/**
|
|
1911
|
-
* true if the server has foot transfers computed
|
|
1912
|
-
*/
|
|
1913
|
-
hasFootTransfers: boolean;
|
|
1914
|
-
/**
|
|
1915
|
-
* true if the server has wheelchair transfers computed
|
|
1916
|
-
*/
|
|
1917
|
-
hasWheelchairTransfers: boolean;
|
|
1918
|
-
/**
|
|
1919
|
-
* true if the server has car transfers computed
|
|
1920
|
-
*/
|
|
1921
|
-
hasCarTransfers: boolean;
|
|
1922
|
-
/**
|
|
1923
|
-
* all outgoing transfers of this location
|
|
1924
|
-
*/
|
|
1925
|
-
transfers: Array<Transfer>;
|
|
1877
|
+
query: {
|
|
1878
|
+
/**
|
|
1879
|
+
* location id
|
|
1880
|
+
*/
|
|
1881
|
+
id: string;
|
|
1882
|
+
};
|
|
1926
1883
|
};
|
|
1884
|
+
type TransfersResponse = ({
|
|
1885
|
+
place: Place;
|
|
1886
|
+
/**
|
|
1887
|
+
* true if the server has foot transfers computed
|
|
1888
|
+
*/
|
|
1889
|
+
hasFootTransfers: boolean;
|
|
1890
|
+
/**
|
|
1891
|
+
* true if the server has wheelchair transfers computed
|
|
1892
|
+
*/
|
|
1893
|
+
hasWheelchairTransfers: boolean;
|
|
1894
|
+
/**
|
|
1895
|
+
* true if the server has car transfers computed
|
|
1896
|
+
*/
|
|
1897
|
+
hasCarTransfers: boolean;
|
|
1898
|
+
/**
|
|
1899
|
+
* all outgoing transfers of this location
|
|
1900
|
+
*/
|
|
1901
|
+
transfers: Array<Transfer>;
|
|
1902
|
+
});
|
|
1927
1903
|
type TransfersError = unknown;
|
|
1928
1904
|
|
|
1929
|
-
export type {
|
|
1930
|
-
Alert,
|
|
1931
|
-
AlertCause,
|
|
1932
|
-
AlertEffect,
|
|
1933
|
-
AlertSeverityLevel,
|
|
1934
|
-
Area,
|
|
1935
|
-
Direction,
|
|
1936
|
-
Duration,
|
|
1937
|
-
ElevationCosts,
|
|
1938
|
-
EncodedPolyline,
|
|
1939
|
-
FareMedia,
|
|
1940
|
-
FareMediaType,
|
|
1941
|
-
FareProduct,
|
|
1942
|
-
FareTransfer,
|
|
1943
|
-
FareTransferRule,
|
|
1944
|
-
GeocodeData,
|
|
1945
|
-
GeocodeError,
|
|
1946
|
-
GeocodeResponse,
|
|
1947
|
-
InitialError,
|
|
1948
|
-
InitialResponse,
|
|
1949
|
-
Itinerary,
|
|
1950
|
-
Leg,
|
|
1951
|
-
LevelsData,
|
|
1952
|
-
LevelsError,
|
|
1953
|
-
LevelsResponse,
|
|
1954
|
-
LocationType,
|
|
1955
|
-
Match,
|
|
1956
|
-
Mode,
|
|
1957
|
-
OneToAllData,
|
|
1958
|
-
OneToAllError,
|
|
1959
|
-
OneToAllResponse,
|
|
1960
|
-
OneToManyData,
|
|
1961
|
-
OneToManyError,
|
|
1962
|
-
OneToManyResponse,
|
|
1963
|
-
PedestrianProfile,
|
|
1964
|
-
PickupDropoffType,
|
|
1965
|
-
Place,
|
|
1966
|
-
PlanData,
|
|
1967
|
-
PlanError,
|
|
1968
|
-
PlanResponse,
|
|
1969
|
-
Reachable,
|
|
1970
|
-
ReachablePlace,
|
|
1971
|
-
Rental,
|
|
1972
|
-
RentalFormFactor,
|
|
1973
|
-
RentalPropulsionType,
|
|
1974
|
-
RentalReturnConstraint,
|
|
1975
|
-
ReverseGeocodeData,
|
|
1976
|
-
ReverseGeocodeError,
|
|
1977
|
-
ReverseGeocodeResponse,
|
|
1978
|
-
RiderCategory,
|
|
1979
|
-
StepInstruction,
|
|
1980
|
-
StopTime,
|
|
1981
|
-
StopsData,
|
|
1982
|
-
StopsError,
|
|
1983
|
-
StopsResponse,
|
|
1984
|
-
StoptimesData,
|
|
1985
|
-
StoptimesError,
|
|
1986
|
-
StoptimesResponse,
|
|
1987
|
-
TimeRange,
|
|
1988
|
-
Token,
|
|
1989
|
-
Transfer,
|
|
1990
|
-
TransfersData,
|
|
1991
|
-
TransfersError,
|
|
1992
|
-
TransfersResponse,
|
|
1993
|
-
TripData,
|
|
1994
|
-
TripError,
|
|
1995
|
-
TripInfo,
|
|
1996
|
-
TripResponse,
|
|
1997
|
-
TripSegment,
|
|
1998
|
-
TripsData,
|
|
1999
|
-
TripsError,
|
|
2000
|
-
TripsResponse,
|
|
2001
|
-
VertexType
|
|
2002
|
-
};
|
|
1905
|
+
export type { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, Direction, Duration, ElevationCosts, EncodedPolyline, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType };
|