@motis-project/motis-client 2.0.83 → 2.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,270 +1,297 @@
1
1
  // openapi/schemas.gen.ts
2
2
  var AlertCauseSchema = {
3
- description: "Cause of this alert.",
4
- type: "string",
5
- enum: ["UNKNOWN_CAUSE", "OTHER_CAUSE", "TECHNICAL_PROBLEM", "STRIKE", "DEMONSTRATION", "ACCIDENT", "HOLIDAY", "WEATHER", "MAINTENANCE", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY"]
3
+ description: 'Cause of this alert.',
4
+ type: 'string',
5
+ enum: [
6
+ 'UNKNOWN_CAUSE',
7
+ 'OTHER_CAUSE',
8
+ 'TECHNICAL_PROBLEM',
9
+ 'STRIKE',
10
+ 'DEMONSTRATION',
11
+ 'ACCIDENT',
12
+ 'HOLIDAY',
13
+ 'WEATHER',
14
+ 'MAINTENANCE',
15
+ 'CONSTRUCTION',
16
+ 'POLICE_ACTIVITY',
17
+ 'MEDICAL_EMERGENCY'
18
+ ]
6
19
  };
7
20
  var AlertEffectSchema = {
8
- description: "The effect of this problem on the affected entity.",
9
- type: "string",
10
- enum: ["NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "DETOUR", "ADDITIONAL_SERVICE", "MODIFIED_SERVICE", "OTHER_EFFECT", "UNKNOWN_EFFECT", "STOP_MOVED", "NO_EFFECT", "ACCESSIBILITY_ISSUE"]
21
+ description: 'The effect of this problem on the affected entity.',
22
+ type: 'string',
23
+ enum: [
24
+ 'NO_SERVICE',
25
+ 'REDUCED_SERVICE',
26
+ 'SIGNIFICANT_DELAYS',
27
+ 'DETOUR',
28
+ 'ADDITIONAL_SERVICE',
29
+ 'MODIFIED_SERVICE',
30
+ 'OTHER_EFFECT',
31
+ 'UNKNOWN_EFFECT',
32
+ 'STOP_MOVED',
33
+ 'NO_EFFECT',
34
+ 'ACCESSIBILITY_ISSUE'
35
+ ]
11
36
  };
12
37
  var AlertSeverityLevelSchema = {
13
- description: "The severity of the alert.",
14
- type: "string",
15
- enum: ["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]
38
+ description: 'The severity of the alert.',
39
+ type: 'string',
40
+ enum: ['UNKNOWN_SEVERITY', 'INFO', 'WARNING', 'SEVERE']
16
41
  };
17
42
  var TimeRangeSchema = {
18
- description: `A time interval.
43
+ description: `A time interval.
19
44
  The interval is considered active at time t if t is greater than or equal to the start time and less than the end time.
20
45
  `,
21
- type: "object",
22
- properties: {
23
- start: {
24
- description: `If missing, the interval starts at minus infinity.
46
+ type: 'object',
47
+ properties: {
48
+ start: {
49
+ description: `If missing, the interval starts at minus infinity.
25
50
  If a TimeRange is provided, either start or end must be provided - both fields cannot be empty.
26
51
  `,
27
- type: "string",
28
- format: "date-time"
29
- },
30
- end: {
31
- description: `If missing, the interval ends at plus infinity.
52
+ type: 'string',
53
+ format: 'date-time'
54
+ },
55
+ end: {
56
+ description: `If missing, the interval ends at plus infinity.
32
57
  If a TimeRange is provided, either start or end must be provided - both fields cannot be empty.
33
58
  `,
34
- type: "string",
35
- format: "date-time"
36
- }
37
- }
59
+ type: 'string',
60
+ format: 'date-time'
61
+ }
62
+ }
38
63
  };
39
64
  var AlertSchema = {
40
- description: "An alert, indicating some sort of incident in the public transit network.",
41
- type: "object",
42
- required: ["headerText", "descriptionText"],
43
- properties: {
44
- communicationPeriod: {
45
- description: `Time when the alert should be shown to the user.
65
+ description: 'An alert, indicating some sort of incident in the public transit network.',
66
+ type: 'object',
67
+ required: ['headerText', 'descriptionText'],
68
+ properties: {
69
+ communicationPeriod: {
70
+ description: `Time when the alert should be shown to the user.
46
71
  If missing, the alert will be shown as long as it appears in the feed.
47
72
  If multiple ranges are given, the alert will be shown during all of them.
48
73
  `,
49
- type: "array",
50
- items: {
51
- "$ref": "#/components/schemas/TimeRange"
52
- }
53
- },
54
- impactPeriod: {
55
- description: "Time when the services are affected by the disruption mentioned in the alert.",
56
- type: "array",
57
- items: {
58
- "$ref": "#/components/schemas/TimeRange"
59
- }
60
- },
61
- cause: {
62
- "$ref": "#/components/schemas/AlertCause"
63
- },
64
- causeDetail: {
65
- type: "string",
66
- description: `Description of the cause of the alert that allows for agency-specific language;
74
+ type: 'array',
75
+ items: {
76
+ $ref: '#/components/schemas/TimeRange'
77
+ }
78
+ },
79
+ impactPeriod: {
80
+ description: 'Time when the services are affected by the disruption mentioned in the alert.',
81
+ type: 'array',
82
+ items: {
83
+ $ref: '#/components/schemas/TimeRange'
84
+ }
85
+ },
86
+ cause: {
87
+ $ref: '#/components/schemas/AlertCause'
88
+ },
89
+ causeDetail: {
90
+ type: 'string',
91
+ description: `Description of the cause of the alert that allows for agency-specific language;
67
92
  more specific than the Cause.
68
93
  `
69
- },
70
- effect: {
71
- "$ref": "#/components/schemas/AlertEffect"
72
- },
73
- effectDetail: {
74
- type: "string",
75
- description: `Description of the effect of the alert that allows for agency-specific language;
94
+ },
95
+ effect: {
96
+ $ref: '#/components/schemas/AlertEffect'
97
+ },
98
+ effectDetail: {
99
+ type: 'string',
100
+ description: `Description of the effect of the alert that allows for agency-specific language;
76
101
  more specific than the Effect.
77
102
  `
78
- },
79
- url: {
80
- type: "string",
81
- description: "The URL which provides additional information about the alert."
82
- },
83
- headerText: {
84
- type: "string",
85
- description: `Header for the alert. This plain-text string will be highlighted, for example in boldface.
103
+ },
104
+ url: {
105
+ type: 'string',
106
+ description: 'The URL which provides additional information about the alert.'
107
+ },
108
+ headerText: {
109
+ type: 'string',
110
+ description: `Header for the alert. This plain-text string will be highlighted, for example in boldface.
86
111
  `
87
- },
88
- descriptionText: {
89
- type: "string",
90
- description: `Description for the alert.
112
+ },
113
+ descriptionText: {
114
+ type: 'string',
115
+ description: `Description for the alert.
91
116
  This plain-text string will be formatted as the body of the alert (or shown on an explicit "expand" request by the user).
92
117
  The information in the description should add to the information of the header.
93
118
  `
94
- },
95
- ttsHeaderText: {
96
- type: "string",
97
- description: `Text containing the alert's header to be used for text-to-speech implementations.
119
+ },
120
+ ttsHeaderText: {
121
+ type: 'string',
122
+ description: `Text containing the alert's header to be used for text-to-speech implementations.
98
123
  This field is the text-to-speech version of header_text.
99
124
  It should contain the same information as headerText but formatted such that it can read as text-to-speech
100
125
  (for example, abbreviations removed, numbers spelled out, etc.)
101
126
  `
102
- },
103
- ttsDescriptionText: {
104
- type: "string",
105
- description: `Text containing a description for the alert to be used for text-to-speech implementations.
127
+ },
128
+ ttsDescriptionText: {
129
+ type: 'string',
130
+ description: `Text containing a description for the alert to be used for text-to-speech implementations.
106
131
  This field is the text-to-speech version of description_text.
107
132
  It should contain the same information as description_text but formatted such that it can be read as text-to-speech
108
133
  (for example, abbreviations removed, numbers spelled out, etc.)
109
134
  `
110
- },
111
- severityLevel: {
112
- description: "Severity of the alert.",
113
- "$ref": "#/components/schemas/AlertSeverityLevel"
114
- },
115
- imageUrl: {
116
- description: "String containing an URL linking to an image.",
117
- type: "string"
118
- },
119
- imageMediaType: {
120
- description: `IANA media type as to specify the type of image to be displayed. The type must start with "image/"
135
+ },
136
+ severityLevel: {
137
+ description: 'Severity of the alert.',
138
+ $ref: '#/components/schemas/AlertSeverityLevel'
139
+ },
140
+ imageUrl: {
141
+ description: 'String containing an URL linking to an image.',
142
+ type: 'string'
143
+ },
144
+ imageMediaType: {
145
+ description: `IANA media type as to specify the type of image to be displayed. The type must start with "image/"
121
146
  `,
122
- type: "string"
123
- },
124
- imageAlternativeText: {
125
- description: `Text describing the appearance of the linked image in the image field
147
+ type: 'string'
148
+ },
149
+ imageAlternativeText: {
150
+ description: `Text describing the appearance of the linked image in the image field
126
151
  (e.g., in case the image can't be displayed or the user can't see the image for accessibility reasons).
127
152
  See the HTML spec for alt image text.
128
153
  `,
129
- type: "string"
130
- }
131
- }
154
+ type: 'string'
155
+ }
156
+ }
132
157
  };
133
158
  var DurationSchema = {
134
- description: "Object containing duration if a path was found or none if no path was found",
135
- type: "object",
136
- properties: {
137
- duration: {
138
- type: "number",
139
- description: "duration in seconds if a path was found, otherwise missing"
140
- }
141
- }
159
+ description: 'Object containing duration if a path was found or none if no path was found',
160
+ type: 'object',
161
+ properties: {
162
+ duration: {
163
+ type: 'number',
164
+ description: 'duration in seconds if a path was found, otherwise missing'
165
+ }
166
+ }
142
167
  };
143
168
  var AreaSchema = {
144
- description: "Administrative area",
145
- type: "object",
146
- required: ["name", "adminLevel", "matched"],
147
- properties: {
148
- name: {
149
- type: "string",
150
- description: "Name of the area"
151
- },
152
- adminLevel: {
153
- type: "number",
154
- description: `[OpenStreetMap \`admin_level\`](https://wiki.openstreetmap.org/wiki/Key:admin_level)
169
+ description: 'Administrative area',
170
+ type: 'object',
171
+ required: ['name', 'adminLevel', 'matched'],
172
+ properties: {
173
+ name: {
174
+ type: 'string',
175
+ description: 'Name of the area'
176
+ },
177
+ adminLevel: {
178
+ type: 'number',
179
+ description: `[OpenStreetMap \`admin_level\`](https://wiki.openstreetmap.org/wiki/Key:admin_level)
155
180
  of the area
156
181
  `
157
- },
158
- matched: {
159
- type: "boolean",
160
- description: "Whether this area was matched by the input text"
161
- },
162
- unique: {
163
- type: "boolean",
164
- description: `Set for the first area after the \`default\` area that distinguishes areas
182
+ },
183
+ matched: {
184
+ type: 'boolean',
185
+ description: 'Whether this area was matched by the input text'
186
+ },
187
+ unique: {
188
+ type: 'boolean',
189
+ description: `Set for the first area after the \`default\` area that distinguishes areas
165
190
  if the match is ambiguous regarding (\`default\` area + place name / street [+ house number]).
166
191
  `
167
- },
168
- default: {
169
- type: "boolean",
170
- description: "Whether this area should be displayed as default area (area with admin level closest 7)"
171
- }
172
- }
192
+ },
193
+ default: {
194
+ type: 'boolean',
195
+ description:
196
+ 'Whether this area should be displayed as default area (area with admin level closest 7)'
197
+ }
198
+ }
173
199
  };
174
200
  var TokenSchema = {
175
- description: "Matched token range (from index, length)",
176
- type: "array",
177
- minItems: 2,
178
- maxItems: 2,
179
- items: {
180
- type: "number"
181
- }
201
+ description: 'Matched token range (from index, length)',
202
+ type: 'array',
203
+ minItems: 2,
204
+ maxItems: 2,
205
+ items: {
206
+ type: 'number'
207
+ }
182
208
  };
183
209
  var LocationTypeSchema = {
184
- description: "location type",
185
- type: "string",
186
- enum: ["ADDRESS", "PLACE", "STOP"]
210
+ description: 'location type',
211
+ type: 'string',
212
+ enum: ['ADDRESS', 'PLACE', 'STOP']
187
213
  };
188
214
  var MatchSchema = {
189
- description: "GeoCoding match",
190
- type: "object",
191
- required: ["type", "name", "id", "lat", "lon", "tokens", "areas", "score"],
192
- properties: {
193
- type: {
194
- "$ref": "#/components/schemas/LocationType"
195
- },
196
- tokens: {
197
- description: "list of non-overlapping tokens that were matched",
198
- type: "array",
199
- items: {
200
- "$ref": "#/components/schemas/Token"
201
- }
202
- },
203
- name: {
204
- description: "name of the location (transit stop / PoI / address)",
205
- type: "string"
206
- },
207
- id: {
208
- description: "unique ID of the location",
209
- type: "string"
210
- },
211
- lat: {
212
- description: "latitude",
213
- type: "number"
214
- },
215
- lon: {
216
- description: "longitude",
217
- type: "number"
218
- },
219
- level: {
220
- description: `level according to OpenStreetMap
215
+ description: 'GeoCoding match',
216
+ type: 'object',
217
+ required: ['type', 'name', 'id', 'lat', 'lon', 'tokens', 'areas', 'score'],
218
+ properties: {
219
+ type: {
220
+ $ref: '#/components/schemas/LocationType'
221
+ },
222
+ tokens: {
223
+ description: 'list of non-overlapping tokens that were matched',
224
+ type: 'array',
225
+ items: {
226
+ $ref: '#/components/schemas/Token'
227
+ }
228
+ },
229
+ name: {
230
+ description: 'name of the location (transit stop / PoI / address)',
231
+ type: 'string'
232
+ },
233
+ id: {
234
+ description: 'unique ID of the location',
235
+ type: 'string'
236
+ },
237
+ lat: {
238
+ description: 'latitude',
239
+ type: 'number'
240
+ },
241
+ lon: {
242
+ description: 'longitude',
243
+ type: 'number'
244
+ },
245
+ level: {
246
+ description: `level according to OpenStreetMap
221
247
  (at the moment only for public transport)
222
248
  `,
223
- type: "number"
224
- },
225
- street: {
226
- description: "street name",
227
- type: "string"
228
- },
229
- houseNumber: {
230
- description: "house number",
231
- type: "string"
232
- },
233
- zip: {
234
- description: "zip code",
235
- type: "string"
236
- },
237
- areas: {
238
- description: "list of areas",
239
- type: "array",
240
- items: {
241
- "$ref": "#/components/schemas/Area"
242
- }
243
- },
244
- score: {
245
- description: "score according to the internal scoring system (the scoring algorithm might change in the future)",
246
- type: "number"
247
- }
248
- }
249
+ type: 'number'
250
+ },
251
+ street: {
252
+ description: 'street name',
253
+ type: 'string'
254
+ },
255
+ houseNumber: {
256
+ description: 'house number',
257
+ type: 'string'
258
+ },
259
+ zip: {
260
+ description: 'zip code',
261
+ type: 'string'
262
+ },
263
+ areas: {
264
+ description: 'list of areas',
265
+ type: 'array',
266
+ items: {
267
+ $ref: '#/components/schemas/Area'
268
+ }
269
+ },
270
+ score: {
271
+ description:
272
+ 'score according to the internal scoring system (the scoring algorithm might change in the future)',
273
+ type: 'number'
274
+ }
275
+ }
249
276
  };
250
277
  var ElevationCostsSchema = {
251
- description: `Different elevation cost profiles for street routing.
278
+ description: `Different elevation cost profiles for street routing.
252
279
  Using a elevation cost profile will prefer routes with a smaller incline and smaller difference in elevation, even if the routed way is longer.
253
280
 
254
281
  - \`NONE\`: Ignore elevation data for routing. This is the default behavior
255
282
  - \`LOW\`: Add a low penalty for inclines. This will favor longer paths, if the elevation increase and incline are smaller.
256
283
  - \`HIGH\`: Add a high penalty for inclines. This will favor even longer paths, if the elevation increase and incline are smaller.
257
284
  `,
258
- type: "string",
259
- enum: ["NONE", "LOW", "HIGH"]
285
+ type: 'string',
286
+ enum: ['NONE', 'LOW', 'HIGH']
260
287
  };
261
288
  var PedestrianProfileSchema = {
262
- description: "Different accessibility profiles for pedestrians.",
263
- type: "string",
264
- enum: ["FOOT", "WHEELCHAIR"]
289
+ description: 'Different accessibility profiles for pedestrians.',
290
+ type: 'string',
291
+ enum: ['FOOT', 'WHEELCHAIR']
265
292
  };
266
293
  var ModeSchema = {
267
- description: `# Street modes
294
+ description: `# Street modes
268
295
 
269
296
  - \`WALK\`
270
297
  - \`BIKE\`
@@ -294,139 +321,167 @@ var ModeSchema = {
294
321
  - \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
295
322
  - \`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.
296
323
  `,
297
- type: "string",
298
- enum: ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "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"]
324
+ type: 'string',
325
+ enum: [
326
+ 'WALK',
327
+ 'BIKE',
328
+ 'RENTAL',
329
+ 'CAR',
330
+ 'CAR_PARKING',
331
+ 'ODM',
332
+ 'FLEX',
333
+ 'TRANSIT',
334
+ 'TRAM',
335
+ 'SUBWAY',
336
+ 'FERRY',
337
+ 'AIRPLANE',
338
+ 'METRO',
339
+ 'BUS',
340
+ 'COACH',
341
+ 'RAIL',
342
+ 'HIGHSPEED_RAIL',
343
+ 'LONG_DISTANCE',
344
+ 'NIGHT_RAIL',
345
+ 'REGIONAL_FAST_RAIL',
346
+ 'REGIONAL_RAIL',
347
+ 'CABLE_CAR',
348
+ 'FUNICULAR',
349
+ 'AREAL_LIFT',
350
+ 'OTHER'
351
+ ]
299
352
  };
300
353
  var VertexTypeSchema = {
301
- type: "string",
302
- description: `- \`NORMAL\` - latitude / longitude coordinate or address
354
+ type: 'string',
355
+ description: `- \`NORMAL\` - latitude / longitude coordinate or address
303
356
  - \`BIKESHARE\` - bike sharing station
304
357
  - \`TRANSIT\` - transit stop
305
358
  `,
306
- enum: ["NORMAL", "BIKESHARE", "TRANSIT"]
359
+ enum: ['NORMAL', 'BIKESHARE', 'TRANSIT']
307
360
  };
308
361
  var PickupDropoffTypeSchema = {
309
- type: "string",
310
- description: `- \`NORMAL\` - entry/exit is possible normally
362
+ type: 'string',
363
+ description: `- \`NORMAL\` - entry/exit is possible normally
311
364
  - \`NOT_ALLOWED\` - entry/exit is not allowed
312
365
  `,
313
- enum: ["NORMAL", "NOT_ALLOWED"]
366
+ enum: ['NORMAL', 'NOT_ALLOWED']
314
367
  };
315
368
  var PlaceSchema = {
316
- type: "object",
317
- required: ["name", "lat", "lon", "level"],
318
- properties: {
319
- name: {
320
- description: "name of the transit stop / PoI / address",
321
- type: "string"
322
- },
323
- stopId: {
324
- description: "The ID of the stop. This is often something that users don't care about.",
325
- type: "string"
326
- },
327
- lat: {
328
- description: "latitude",
329
- type: "number"
330
- },
331
- lon: {
332
- description: "longitude",
333
- type: "number"
334
- },
335
- level: {
336
- description: "level according to OpenStreetMap",
337
- type: "number"
338
- },
339
- arrival: {
340
- description: "arrival time",
341
- type: "string",
342
- format: "date-time"
343
- },
344
- departure: {
345
- description: "departure time",
346
- type: "string",
347
- format: "date-time"
348
- },
349
- scheduledArrival: {
350
- description: "scheduled arrival time",
351
- type: "string",
352
- format: "date-time"
353
- },
354
- scheduledDeparture: {
355
- description: "scheduled departure time",
356
- type: "string",
357
- format: "date-time"
358
- },
359
- scheduledTrack: {
360
- description: "scheduled track from the static schedule timetable dataset",
361
- type: "string"
362
- },
363
- track: {
364
- description: `The current track/platform information, updated with real-time updates if available.
369
+ type: 'object',
370
+ required: ['name', 'lat', 'lon', 'level'],
371
+ properties: {
372
+ name: {
373
+ description: 'name of the transit stop / PoI / address',
374
+ type: 'string'
375
+ },
376
+ stopId: {
377
+ description: "The ID of the stop. This is often something that users don't care about.",
378
+ type: 'string'
379
+ },
380
+ lat: {
381
+ description: 'latitude',
382
+ type: 'number'
383
+ },
384
+ lon: {
385
+ description: 'longitude',
386
+ type: 'number'
387
+ },
388
+ level: {
389
+ description: 'level according to OpenStreetMap',
390
+ type: 'number'
391
+ },
392
+ arrival: {
393
+ description: 'arrival time',
394
+ type: 'string',
395
+ format: 'date-time'
396
+ },
397
+ departure: {
398
+ description: 'departure time',
399
+ type: 'string',
400
+ format: 'date-time'
401
+ },
402
+ scheduledArrival: {
403
+ description: 'scheduled arrival time',
404
+ type: 'string',
405
+ format: 'date-time'
406
+ },
407
+ scheduledDeparture: {
408
+ description: 'scheduled departure time',
409
+ type: 'string',
410
+ format: 'date-time'
411
+ },
412
+ scheduledTrack: {
413
+ description: 'scheduled track from the static schedule timetable dataset',
414
+ type: 'string'
415
+ },
416
+ track: {
417
+ description: `The current track/platform information, updated with real-time updates if available.
365
418
  Can be missing if neither real-time updates nor the schedule timetable contains track information.
366
419
  `,
367
- type: "string"
368
- },
369
- description: {
370
- description: "description of the location that provides more detailed information",
371
- type: "string"
372
- },
373
- vertexType: {
374
- "$ref": "#/components/schemas/VertexType"
375
- },
376
- pickupType: {
377
- description: "Type of pickup. It could be disallowed due to schedule, skipped stops or cancellations.",
378
- "$ref": "#/components/schemas/PickupDropoffType"
379
- },
380
- dropoffType: {
381
- description: "Type of dropoff. It could be disallowed due to schedule, skipped stops or cancellations.",
382
- "$ref": "#/components/schemas/PickupDropoffType"
383
- },
384
- cancelled: {
385
- description: "Whether this stop is cancelled due to the realtime situation.",
386
- type: "boolean"
387
- },
388
- alerts: {
389
- description: "Alerts for this stop.",
390
- type: "array",
391
- items: {
392
- "$ref": "#/components/schemas/Alert"
393
- }
394
- },
395
- flex: {
396
- description: "for `FLEX` transports, the flex location area or location group name",
397
- type: "string"
398
- },
399
- flexId: {
400
- description: "for `FLEX` transports, the flex location area ID or location group ID",
401
- type: "string"
402
- },
403
- flexStartPickupDropOffWindow: {
404
- description: "Time that on-demand service becomes available",
405
- type: "string",
406
- format: "date-time"
407
- },
408
- flexEndPickupDropOffWindow: {
409
- description: "Time that on-demand service ends",
410
- type: "string",
411
- format: "date-time"
412
- }
413
- }
420
+ type: 'string'
421
+ },
422
+ description: {
423
+ description: 'description of the location that provides more detailed information',
424
+ type: 'string'
425
+ },
426
+ vertexType: {
427
+ $ref: '#/components/schemas/VertexType'
428
+ },
429
+ pickupType: {
430
+ description:
431
+ 'Type of pickup. It could be disallowed due to schedule, skipped stops or cancellations.',
432
+ $ref: '#/components/schemas/PickupDropoffType'
433
+ },
434
+ dropoffType: {
435
+ description:
436
+ 'Type of dropoff. It could be disallowed due to schedule, skipped stops or cancellations.',
437
+ $ref: '#/components/schemas/PickupDropoffType'
438
+ },
439
+ cancelled: {
440
+ description: 'Whether this stop is cancelled due to the realtime situation.',
441
+ type: 'boolean'
442
+ },
443
+ alerts: {
444
+ description: 'Alerts for this stop.',
445
+ type: 'array',
446
+ items: {
447
+ $ref: '#/components/schemas/Alert'
448
+ }
449
+ },
450
+ flex: {
451
+ description: 'for `FLEX` transports, the flex location area or location group name',
452
+ type: 'string'
453
+ },
454
+ flexId: {
455
+ description: 'for `FLEX` transports, the flex location area ID or location group ID',
456
+ type: 'string'
457
+ },
458
+ flexStartPickupDropOffWindow: {
459
+ description: 'Time that on-demand service becomes available',
460
+ type: 'string',
461
+ format: 'date-time'
462
+ },
463
+ flexEndPickupDropOffWindow: {
464
+ description: 'Time that on-demand service ends',
465
+ type: 'string',
466
+ format: 'date-time'
467
+ }
468
+ }
414
469
  };
415
470
  var ReachablePlaceSchema = {
416
- description: "Place reachable by One-to-All",
417
- type: "object",
418
- properties: {
419
- place: {
420
- "$ref": "#/components/schemas/Place",
421
- description: "Place reached by One-to-All"
422
- },
423
- duration: {
424
- type: "integer",
425
- description: "Total travel duration"
426
- },
427
- k: {
428
- type: "integer",
429
- description: `k is the smallest number, for which a journey with the shortest duration and at most k-1 transfers exist.
471
+ description: 'Place reachable by One-to-All',
472
+ type: 'object',
473
+ properties: {
474
+ place: {
475
+ $ref: '#/components/schemas/Place',
476
+ description: 'Place reached by One-to-All'
477
+ },
478
+ duration: {
479
+ type: 'integer',
480
+ description: 'Total travel duration'
481
+ },
482
+ k: {
483
+ type: 'integer',
484
+ description: `k is the smallest number, for which a journey with the shortest duration and at most k-1 transfers exist.
430
485
  You can think of k as the number of connections used.
431
486
 
432
487
  In more detail:
@@ -435,331 +490,407 @@ k=0: No connection, e.g. for the one location
435
490
  k=1: Direct connection
436
491
  k=2: Connection with 1 transfer
437
492
  `
438
- }
439
- }
493
+ }
494
+ }
440
495
  };
441
496
  var ReachableSchema = {
442
- description: "Object containing all reachable places by One-to-All search",
443
- type: "object",
444
- properties: {
445
- one: {
446
- "$ref": "#/components/schemas/Place",
447
- description: "One location used in One-to-All search"
448
- },
449
- all: {
450
- description: "List of locations reachable by One-to-All",
451
- type: "array",
452
- items: {
453
- "$ref": "#/components/schemas/ReachablePlace"
454
- }
455
- }
456
- }
497
+ description: 'Object containing all reachable places by One-to-All search',
498
+ type: 'object',
499
+ properties: {
500
+ one: {
501
+ $ref: '#/components/schemas/Place',
502
+ description: 'One location used in One-to-All search'
503
+ },
504
+ all: {
505
+ description: 'List of locations reachable by One-to-All',
506
+ type: 'array',
507
+ items: {
508
+ $ref: '#/components/schemas/ReachablePlace'
509
+ }
510
+ }
511
+ }
457
512
  };
458
513
  var StopTimeSchema = {
459
- description: "departure or arrival event at a stop",
460
- type: "object",
461
- required: ["place", "mode", "realTime", "headsign", "agencyId", "agencyName", "agencyUrl", "tripId", "routeShortName", "pickupDropoffType", "cancelled", "source"],
462
- properties: {
463
- place: {
464
- "$ref": "#/components/schemas/Place",
465
- description: "information about the stop place and time"
466
- },
467
- mode: {
468
- "$ref": "#/components/schemas/Mode",
469
- description: "Transport mode for this leg"
470
- },
471
- realTime: {
472
- description: "Whether there is real-time data about this leg",
473
- type: "boolean"
474
- },
475
- headsign: {
476
- description: `For transit legs, the headsign of the bus or train being used.
514
+ description: 'departure or arrival event at a stop',
515
+ type: 'object',
516
+ required: [
517
+ 'place',
518
+ 'mode',
519
+ 'realTime',
520
+ 'headsign',
521
+ 'agencyId',
522
+ 'agencyName',
523
+ 'agencyUrl',
524
+ 'tripId',
525
+ 'routeShortName',
526
+ 'pickupDropoffType',
527
+ 'cancelled',
528
+ 'source'
529
+ ],
530
+ properties: {
531
+ place: {
532
+ $ref: '#/components/schemas/Place',
533
+ description: 'information about the stop place and time'
534
+ },
535
+ mode: {
536
+ $ref: '#/components/schemas/Mode',
537
+ description: 'Transport mode for this leg'
538
+ },
539
+ realTime: {
540
+ description: 'Whether there is real-time data about this leg',
541
+ type: 'boolean'
542
+ },
543
+ headsign: {
544
+ description: `For transit legs, the headsign of the bus or train being used.
477
545
  For non-transit legs, null
478
546
  `,
479
- type: "string"
480
- },
481
- agencyId: {
482
- type: "string"
483
- },
484
- agencyName: {
485
- type: "string"
486
- },
487
- agencyUrl: {
488
- type: "string"
489
- },
490
- routeColor: {
491
- type: "string"
492
- },
493
- routeTextColor: {
494
- type: "string"
495
- },
496
- tripId: {
497
- type: "string"
498
- },
499
- routeShortName: {
500
- type: "string"
501
- },
502
- pickupDropoffType: {
503
- description: "Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations",
504
- "$ref": "#/components/schemas/PickupDropoffType"
505
- },
506
- cancelled: {
507
- description: "Whether the departure/arrival is cancelled due to the realtime situation.",
508
- type: "boolean"
509
- },
510
- source: {
511
- description: "Filename and line number where this trip is from",
512
- type: "string"
513
- }
514
- }
547
+ type: 'string'
548
+ },
549
+ agencyId: {
550
+ type: 'string'
551
+ },
552
+ agencyName: {
553
+ type: 'string'
554
+ },
555
+ agencyUrl: {
556
+ type: 'string'
557
+ },
558
+ routeColor: {
559
+ type: 'string'
560
+ },
561
+ routeTextColor: {
562
+ type: 'string'
563
+ },
564
+ tripId: {
565
+ type: 'string'
566
+ },
567
+ routeShortName: {
568
+ type: 'string'
569
+ },
570
+ pickupDropoffType: {
571
+ description:
572
+ 'Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations',
573
+ $ref: '#/components/schemas/PickupDropoffType'
574
+ },
575
+ cancelled: {
576
+ description: 'Whether the departure/arrival is cancelled due to the realtime situation.',
577
+ type: 'boolean'
578
+ },
579
+ source: {
580
+ description: 'Filename and line number where this trip is from',
581
+ type: 'string'
582
+ }
583
+ }
515
584
  };
516
585
  var TripInfoSchema = {
517
- description: "trip id and name",
518
- type: "object",
519
- required: ["tripId", "routeShortName"],
520
- properties: {
521
- tripId: {
522
- description: "trip ID (dataset trip id prefixed with the dataset tag)",
523
- type: "string"
524
- },
525
- routeShortName: {
526
- description: "trip display name",
527
- type: "string"
528
- }
529
- }
586
+ description: 'trip id and name',
587
+ type: 'object',
588
+ required: ['tripId', 'routeShortName'],
589
+ properties: {
590
+ tripId: {
591
+ description: 'trip ID (dataset trip id prefixed with the dataset tag)',
592
+ type: 'string'
593
+ },
594
+ routeShortName: {
595
+ description: 'trip display name',
596
+ type: 'string'
597
+ }
598
+ }
530
599
  };
531
600
  var TripSegmentSchema = {
532
- description: "trip segment between two stops to show a trip on a map",
533
- type: "object",
534
- required: ["trips", "mode", "distance", "from", "to", "departure", "arrival", "scheduledArrival", "scheduledDeparture", "realTime", "polyline"],
535
- properties: {
536
- trips: {
537
- type: "array",
538
- items: {
539
- "$ref": "#/components/schemas/TripInfo"
540
- }
541
- },
542
- routeColor: {
543
- type: "string"
544
- },
545
- mode: {
546
- "$ref": "#/components/schemas/Mode",
547
- description: "Transport mode for this leg"
548
- },
549
- distance: {
550
- type: "number",
551
- description: "distance in meters"
552
- },
553
- from: {
554
- "$ref": "#/components/schemas/Place"
555
- },
556
- to: {
557
- "$ref": "#/components/schemas/Place"
558
- },
559
- departure: {
560
- description: "departure time",
561
- type: "string",
562
- format: "date-time"
563
- },
564
- arrival: {
565
- description: "arrival time",
566
- type: "string",
567
- format: "date-time"
568
- },
569
- scheduledDeparture: {
570
- description: "scheduled departure time",
571
- type: "string",
572
- format: "date-time"
573
- },
574
- scheduledArrival: {
575
- description: "scheduled arrival time",
576
- type: "string",
577
- format: "date-time"
578
- },
579
- realTime: {
580
- description: "Whether there is real-time data about this leg",
581
- type: "boolean"
582
- },
583
- polyline: {
584
- description: "Google polyline encoded coordinate sequence (with precision 5) where the trip travels on this segment.",
585
- type: "string"
586
- }
587
- }
601
+ description: 'trip segment between two stops to show a trip on a map',
602
+ type: 'object',
603
+ required: [
604
+ 'trips',
605
+ 'mode',
606
+ 'distance',
607
+ 'from',
608
+ 'to',
609
+ 'departure',
610
+ 'arrival',
611
+ 'scheduledArrival',
612
+ 'scheduledDeparture',
613
+ 'realTime',
614
+ 'polyline'
615
+ ],
616
+ properties: {
617
+ trips: {
618
+ type: 'array',
619
+ items: {
620
+ $ref: '#/components/schemas/TripInfo'
621
+ }
622
+ },
623
+ routeColor: {
624
+ type: 'string'
625
+ },
626
+ mode: {
627
+ $ref: '#/components/schemas/Mode',
628
+ description: 'Transport mode for this leg'
629
+ },
630
+ distance: {
631
+ type: 'number',
632
+ description: 'distance in meters'
633
+ },
634
+ from: {
635
+ $ref: '#/components/schemas/Place'
636
+ },
637
+ to: {
638
+ $ref: '#/components/schemas/Place'
639
+ },
640
+ departure: {
641
+ description: 'departure time',
642
+ type: 'string',
643
+ format: 'date-time'
644
+ },
645
+ arrival: {
646
+ description: 'arrival time',
647
+ type: 'string',
648
+ format: 'date-time'
649
+ },
650
+ scheduledDeparture: {
651
+ description: 'scheduled departure time',
652
+ type: 'string',
653
+ format: 'date-time'
654
+ },
655
+ scheduledArrival: {
656
+ description: 'scheduled arrival time',
657
+ type: 'string',
658
+ format: 'date-time'
659
+ },
660
+ realTime: {
661
+ description: 'Whether there is real-time data about this leg',
662
+ type: 'boolean'
663
+ },
664
+ polyline: {
665
+ description:
666
+ 'Google polyline encoded coordinate sequence (with precision 5) where the trip travels on this segment.',
667
+ type: 'string'
668
+ }
669
+ }
588
670
  };
589
671
  var DirectionSchema = {
590
- type: "string",
591
- enum: ["DEPART", "HARD_LEFT", "LEFT", "SLIGHTLY_LEFT", "CONTINUE", "SLIGHTLY_RIGHT", "RIGHT", "HARD_RIGHT", "CIRCLE_CLOCKWISE", "CIRCLE_COUNTERCLOCKWISE", "STAIRS", "ELEVATOR", "UTURN_LEFT", "UTURN_RIGHT"]
672
+ type: 'string',
673
+ enum: [
674
+ 'DEPART',
675
+ 'HARD_LEFT',
676
+ 'LEFT',
677
+ 'SLIGHTLY_LEFT',
678
+ 'CONTINUE',
679
+ 'SLIGHTLY_RIGHT',
680
+ 'RIGHT',
681
+ 'HARD_RIGHT',
682
+ 'CIRCLE_CLOCKWISE',
683
+ 'CIRCLE_COUNTERCLOCKWISE',
684
+ 'STAIRS',
685
+ 'ELEVATOR',
686
+ 'UTURN_LEFT',
687
+ 'UTURN_RIGHT'
688
+ ]
592
689
  };
593
690
  var EncodedPolylineSchema = {
594
- type: "object",
595
- required: ["points", "precision", "length"],
596
- properties: {
597
- points: {
598
- description: "The encoded points of the polyline using the Google polyline encoding.",
599
- type: "string"
600
- },
601
- precision: {
602
- description: `The precision of the returned polyline (7 for /v1, 6 for /v2)
691
+ type: 'object',
692
+ required: ['points', 'precision', 'length'],
693
+ properties: {
694
+ points: {
695
+ description: 'The encoded points of the polyline using the Google polyline encoding.',
696
+ type: 'string'
697
+ },
698
+ precision: {
699
+ description: `The precision of the returned polyline (7 for /v1, 6 for /v2)
603
700
  Be aware that with precision 7, coordinates with |longitude| > 107.37 are undefined/will overflow.
604
701
  `,
605
- type: "integer"
606
- },
607
- length: {
608
- description: "The number of points in the string",
609
- type: "integer",
610
- minimum: 0
611
- }
612
- }
702
+ type: 'integer'
703
+ },
704
+ length: {
705
+ description: 'The number of points in the string',
706
+ type: 'integer',
707
+ minimum: 0
708
+ }
709
+ }
613
710
  };
614
711
  var StepInstructionSchema = {
615
- type: "object",
616
- required: ["fromLevel", "toLevel", "polyline", "relativeDirection", "distance", "streetName", "exit", "stayOn", "area"],
617
- properties: {
618
- relativeDirection: {
619
- "$ref": "#/components/schemas/Direction"
620
- },
621
- distance: {
622
- description: "The distance in meters that this step takes.",
623
- type: "number"
624
- },
625
- fromLevel: {
626
- description: "level where this segment starts, based on OpenStreetMap data",
627
- type: "number"
628
- },
629
- toLevel: {
630
- description: "level where this segment starts, based on OpenStreetMap data",
631
- type: "number"
632
- },
633
- osmWay: {
634
- description: "OpenStreetMap way index",
635
- type: "integer"
636
- },
637
- polyline: {
638
- "$ref": "#/components/schemas/EncodedPolyline"
639
- },
640
- streetName: {
641
- description: "The name of the street.",
642
- type: "string"
643
- },
644
- exit: {
645
- description: `Not implemented!
712
+ type: 'object',
713
+ required: [
714
+ 'fromLevel',
715
+ 'toLevel',
716
+ 'polyline',
717
+ 'relativeDirection',
718
+ 'distance',
719
+ 'streetName',
720
+ 'exit',
721
+ 'stayOn',
722
+ 'area'
723
+ ],
724
+ properties: {
725
+ relativeDirection: {
726
+ $ref: '#/components/schemas/Direction'
727
+ },
728
+ distance: {
729
+ description: 'The distance in meters that this step takes.',
730
+ type: 'number'
731
+ },
732
+ fromLevel: {
733
+ description: 'level where this segment starts, based on OpenStreetMap data',
734
+ type: 'number'
735
+ },
736
+ toLevel: {
737
+ description: 'level where this segment starts, based on OpenStreetMap data',
738
+ type: 'number'
739
+ },
740
+ osmWay: {
741
+ description: 'OpenStreetMap way index',
742
+ type: 'integer'
743
+ },
744
+ polyline: {
745
+ $ref: '#/components/schemas/EncodedPolyline'
746
+ },
747
+ streetName: {
748
+ description: 'The name of the street.',
749
+ type: 'string'
750
+ },
751
+ exit: {
752
+ description: `Not implemented!
646
753
  When exiting a highway or traffic circle, the exit name/number.
647
754
  `,
648
- type: "string"
649
- },
650
- stayOn: {
651
- description: `Not implemented!
755
+ type: 'string'
756
+ },
757
+ stayOn: {
758
+ description: `Not implemented!
652
759
  Indicates whether or not a street changes direction at an intersection.
653
760
  `,
654
- type: "boolean"
655
- },
656
- area: {
657
- description: `Not implemented!
761
+ type: 'boolean'
762
+ },
763
+ area: {
764
+ description: `Not implemented!
658
765
  This step is on an open area, such as a plaza or train platform,
659
766
  and thus the directions should say something like "cross"
660
767
  `,
661
- type: "boolean"
662
- },
663
- toll: {
664
- description: "Indicates that a fee must be paid by general traffic to use a road, road bridge or road tunnel.",
665
- type: "boolean"
666
- },
667
- accessRestriction: {
668
- description: `Experimental. Indicates whether access to this part of the route is restricted.
768
+ type: 'boolean'
769
+ },
770
+ toll: {
771
+ description:
772
+ 'Indicates that a fee must be paid by general traffic to use a road, road bridge or road tunnel.',
773
+ type: 'boolean'
774
+ },
775
+ accessRestriction: {
776
+ description: `Experimental. Indicates whether access to this part of the route is restricted.
669
777
  See: https://wiki.openstreetmap.org/wiki/Conditional_restrictions
670
778
  `,
671
- type: "string"
672
- },
673
- elevationUp: {
674
- type: "integer",
675
- description: "incline in meters across this path segment"
676
- },
677
- elevationDown: {
678
- type: "integer",
679
- description: "decline in meters across this path segment"
680
- }
681
- }
779
+ type: 'string'
780
+ },
781
+ elevationUp: {
782
+ type: 'integer',
783
+ description: 'incline in meters across this path segment'
784
+ },
785
+ elevationDown: {
786
+ type: 'integer',
787
+ description: 'decline in meters across this path segment'
788
+ }
789
+ }
682
790
  };
683
791
  var RentalFormFactorSchema = {
684
- type: "string",
685
- enum: ["BICYCLE", "CARGO_BICYCLE", "CAR", "MOPED", "SCOOTER_STANDING", "SCOOTER_SEATED", "OTHER"]
792
+ type: 'string',
793
+ enum: ['BICYCLE', 'CARGO_BICYCLE', 'CAR', 'MOPED', 'SCOOTER_STANDING', 'SCOOTER_SEATED', 'OTHER']
686
794
  };
687
795
  var RentalPropulsionTypeSchema = {
688
- type: "string",
689
- enum: ["HUMAN", "ELECTRIC_ASSIST", "ELECTRIC", "COMBUSTION", "COMBUSTION_DIESEL", "HYBRID", "PLUG_IN_HYBRID", "HYDROGEN_FUEL_CELL"]
796
+ type: 'string',
797
+ enum: [
798
+ 'HUMAN',
799
+ 'ELECTRIC_ASSIST',
800
+ 'ELECTRIC',
801
+ 'COMBUSTION',
802
+ 'COMBUSTION_DIESEL',
803
+ 'HYBRID',
804
+ 'PLUG_IN_HYBRID',
805
+ 'HYDROGEN_FUEL_CELL'
806
+ ]
690
807
  };
691
808
  var RentalReturnConstraintSchema = {
692
- type: "string",
693
- enum: ["NONE", "ANY_STATION", "ROUNDTRIP_STATION"]
809
+ type: 'string',
810
+ enum: ['NONE', 'ANY_STATION', 'ROUNDTRIP_STATION']
694
811
  };
695
812
  var RentalSchema = {
696
- description: "Vehicle rental",
697
- type: "object",
698
- required: ["systemId"],
699
- properties: {
700
- systemId: {
701
- type: "string",
702
- description: "Vehicle share system ID"
703
- },
704
- systemName: {
705
- type: "string",
706
- description: "Vehicle share system name"
707
- },
708
- url: {
709
- type: "string",
710
- description: "URL of the vehicle share system"
711
- },
712
- stationName: {
713
- type: "string",
714
- description: "Name of the station"
715
- },
716
- fromStationName: {
717
- type: "string",
718
- description: "Name of the station where the vehicle is picked up (empty for free floating vehicles)"
719
- },
720
- toStationName: {
721
- type: "string",
722
- description: "Name of the station where the vehicle is returned (empty for free floating vehicles)"
723
- },
724
- rentalUriAndroid: {
725
- type: "string",
726
- description: "Rental URI for Android (deep link to the specific station or vehicle)"
727
- },
728
- rentalUriIOS: {
729
- type: "string",
730
- description: "Rental URI for iOS (deep link to the specific station or vehicle)"
731
- },
732
- rentalUriWeb: {
733
- type: "string",
734
- description: "Rental URI for web (deep link to the specific station or vehicle)"
735
- },
736
- formFactor: {
737
- "$ref": "#/components/schemas/RentalFormFactor"
738
- },
739
- propulsionType: {
740
- "$ref": "#/components/schemas/RentalPropulsionType"
741
- },
742
- returnConstraint: {
743
- "$ref": "#/components/schemas/RentalReturnConstraint"
744
- }
745
- }
813
+ description: 'Vehicle rental',
814
+ type: 'object',
815
+ required: ['systemId'],
816
+ properties: {
817
+ systemId: {
818
+ type: 'string',
819
+ description: 'Vehicle share system ID'
820
+ },
821
+ systemName: {
822
+ type: 'string',
823
+ description: 'Vehicle share system name'
824
+ },
825
+ url: {
826
+ type: 'string',
827
+ description: 'URL of the vehicle share system'
828
+ },
829
+ stationName: {
830
+ type: 'string',
831
+ description: 'Name of the station'
832
+ },
833
+ fromStationName: {
834
+ type: 'string',
835
+ description:
836
+ 'Name of the station where the vehicle is picked up (empty for free floating vehicles)'
837
+ },
838
+ toStationName: {
839
+ type: 'string',
840
+ description:
841
+ 'Name of the station where the vehicle is returned (empty for free floating vehicles)'
842
+ },
843
+ rentalUriAndroid: {
844
+ type: 'string',
845
+ description: 'Rental URI for Android (deep link to the specific station or vehicle)'
846
+ },
847
+ rentalUriIOS: {
848
+ type: 'string',
849
+ description: 'Rental URI for iOS (deep link to the specific station or vehicle)'
850
+ },
851
+ rentalUriWeb: {
852
+ type: 'string',
853
+ description: 'Rental URI for web (deep link to the specific station or vehicle)'
854
+ },
855
+ formFactor: {
856
+ $ref: '#/components/schemas/RentalFormFactor'
857
+ },
858
+ propulsionType: {
859
+ $ref: '#/components/schemas/RentalPropulsionType'
860
+ },
861
+ returnConstraint: {
862
+ $ref: '#/components/schemas/RentalReturnConstraint'
863
+ }
864
+ }
746
865
  };
747
866
  var LegSchema = {
748
- type: "object",
749
- required: ["mode", "startTime", "endTime", "scheduledStartTime", "scheduledEndTime", "realTime", "scheduled", "duration", "from", "to", "legGeometry"],
750
- properties: {
751
- mode: {
752
- "$ref": "#/components/schemas/Mode",
753
- description: "Transport mode for this leg"
754
- },
755
- from: {
756
- "$ref": "#/components/schemas/Place"
757
- },
758
- to: {
759
- "$ref": "#/components/schemas/Place"
760
- },
761
- duration: {
762
- description: `Leg duration in seconds
867
+ type: 'object',
868
+ required: [
869
+ 'mode',
870
+ 'startTime',
871
+ 'endTime',
872
+ 'scheduledStartTime',
873
+ 'scheduledEndTime',
874
+ 'realTime',
875
+ 'scheduled',
876
+ 'duration',
877
+ 'from',
878
+ 'to',
879
+ 'legGeometry'
880
+ ],
881
+ properties: {
882
+ mode: {
883
+ $ref: '#/components/schemas/Mode',
884
+ description: 'Transport mode for this leg'
885
+ },
886
+ from: {
887
+ $ref: '#/components/schemas/Place'
888
+ },
889
+ to: {
890
+ $ref: '#/components/schemas/Place'
891
+ },
892
+ duration: {
893
+ description: `Leg duration in seconds
763
894
 
764
895
  If leg is footpath:
765
896
  The footpath duration is derived from the default footpath
@@ -772,203 +903,208 @@ If leg is footpath:
772
903
  \`additionalTransferTime = 0\` in case they are not explicitly
773
904
  provided in the query.
774
905
  `,
775
- type: "integer"
776
- },
777
- startTime: {
778
- type: "string",
779
- format: "date-time",
780
- description: "leg departure time"
781
- },
782
- endTime: {
783
- type: "string",
784
- format: "date-time",
785
- description: "leg arrival time"
786
- },
787
- scheduledStartTime: {
788
- type: "string",
789
- format: "date-time",
790
- description: "scheduled leg departure time"
791
- },
792
- scheduledEndTime: {
793
- type: "string",
794
- format: "date-time",
795
- description: "scheduled leg arrival time"
796
- },
797
- realTime: {
798
- description: "Whether there is real-time data about this leg",
799
- type: "boolean"
800
- },
801
- scheduled: {
802
- description: `Whether this leg was originally scheduled to run or is an additional service.
906
+ type: 'integer'
907
+ },
908
+ startTime: {
909
+ type: 'string',
910
+ format: 'date-time',
911
+ description: 'leg departure time'
912
+ },
913
+ endTime: {
914
+ type: 'string',
915
+ format: 'date-time',
916
+ description: 'leg arrival time'
917
+ },
918
+ scheduledStartTime: {
919
+ type: 'string',
920
+ format: 'date-time',
921
+ description: 'scheduled leg departure time'
922
+ },
923
+ scheduledEndTime: {
924
+ type: 'string',
925
+ format: 'date-time',
926
+ description: 'scheduled leg arrival time'
927
+ },
928
+ realTime: {
929
+ description: 'Whether there is real-time data about this leg',
930
+ type: 'boolean'
931
+ },
932
+ scheduled: {
933
+ description: `Whether this leg was originally scheduled to run or is an additional service.
803
934
  Scheduled times will equal realtime times in this case.
804
935
  `,
805
- type: "boolean"
806
- },
807
- distance: {
808
- description: "For non-transit legs the distance traveled while traversing this leg in meters.",
809
- type: "number"
810
- },
811
- interlineWithPreviousLeg: {
812
- description: "For transit legs, if the rider should stay on the vehicle as it changes route names.",
813
- type: "boolean"
814
- },
815
- headsign: {
816
- description: `For transit legs, the headsign of the bus or train being used.
936
+ type: 'boolean'
937
+ },
938
+ distance: {
939
+ description:
940
+ 'For non-transit legs the distance traveled while traversing this leg in meters.',
941
+ type: 'number'
942
+ },
943
+ interlineWithPreviousLeg: {
944
+ description:
945
+ 'For transit legs, if the rider should stay on the vehicle as it changes route names.',
946
+ type: 'boolean'
947
+ },
948
+ headsign: {
949
+ description: `For transit legs, the headsign of the bus or train being used.
817
950
  For non-transit legs, null
818
951
  `,
819
- type: "string"
820
- },
821
- routeColor: {
822
- type: "string"
823
- },
824
- routeTextColor: {
825
- type: "string"
826
- },
827
- routeType: {
828
- type: "string"
829
- },
830
- agencyName: {
831
- type: "string"
832
- },
833
- agencyUrl: {
834
- type: "string"
835
- },
836
- agencyId: {
837
- type: "string"
838
- },
839
- tripId: {
840
- type: "string"
841
- },
842
- routeShortName: {
843
- type: "string"
844
- },
845
- cancelled: {
846
- description: "Whether this trip is cancelled",
847
- type: "boolean"
848
- },
849
- source: {
850
- description: "Filename and line number where this trip is from",
851
- type: "string"
852
- },
853
- intermediateStops: {
854
- description: `For transit legs, intermediate stops between the Place where the leg originates
952
+ type: 'string'
953
+ },
954
+ routeColor: {
955
+ type: 'string'
956
+ },
957
+ routeTextColor: {
958
+ type: 'string'
959
+ },
960
+ routeType: {
961
+ type: 'string'
962
+ },
963
+ agencyName: {
964
+ type: 'string'
965
+ },
966
+ agencyUrl: {
967
+ type: 'string'
968
+ },
969
+ agencyId: {
970
+ type: 'string'
971
+ },
972
+ tripId: {
973
+ type: 'string'
974
+ },
975
+ routeShortName: {
976
+ type: 'string'
977
+ },
978
+ cancelled: {
979
+ description: 'Whether this trip is cancelled',
980
+ type: 'boolean'
981
+ },
982
+ source: {
983
+ description: 'Filename and line number where this trip is from',
984
+ type: 'string'
985
+ },
986
+ intermediateStops: {
987
+ description: `For transit legs, intermediate stops between the Place where the leg originates
855
988
  and the Place where the leg ends. For non-transit legs, null.
856
989
  `,
857
- type: "array",
858
- items: {
859
- "$ref": "#/components/schemas/Place"
860
- }
861
- },
862
- legGeometry: {
863
- "$ref": "#/components/schemas/EncodedPolyline"
864
- },
865
- steps: {
866
- description: `A series of turn by turn instructions
990
+ type: 'array',
991
+ items: {
992
+ $ref: '#/components/schemas/Place'
993
+ }
994
+ },
995
+ legGeometry: {
996
+ $ref: '#/components/schemas/EncodedPolyline'
997
+ },
998
+ steps: {
999
+ description: `A series of turn by turn instructions
867
1000
  used for walking, biking and driving.
868
1001
  `,
869
- type: "array",
870
- items: {
871
- "$ref": "#/components/schemas/StepInstruction"
872
- }
873
- },
874
- rental: {
875
- "$ref": "#/components/schemas/Rental"
876
- },
877
- fareTransferIndex: {
878
- type: "integer",
879
- description: `Index into \`Itinerary.fareTransfers\` array
1002
+ type: 'array',
1003
+ items: {
1004
+ $ref: '#/components/schemas/StepInstruction'
1005
+ }
1006
+ },
1007
+ rental: {
1008
+ $ref: '#/components/schemas/Rental'
1009
+ },
1010
+ fareTransferIndex: {
1011
+ type: 'integer',
1012
+ description: `Index into \`Itinerary.fareTransfers\` array
880
1013
  to identify which fare transfer this leg belongs to
881
1014
  `
882
- },
883
- effectiveFareLegIndex: {
884
- type: "integer",
885
- description: `Index into the \`Itinerary.fareTransfers[fareTransferIndex].effectiveFareLegProducts\` array
1015
+ },
1016
+ effectiveFareLegIndex: {
1017
+ type: 'integer',
1018
+ description: `Index into the \`Itinerary.fareTransfers[fareTransferIndex].effectiveFareLegProducts\` array
886
1019
  to identify which effective fare leg this itinerary leg belongs to
887
1020
  `
888
- },
889
- alerts: {
890
- description: "Alerts for this stop.",
891
- type: "array",
892
- items: {
893
- "$ref": "#/components/schemas/Alert"
894
- }
895
- }
896
- }
1021
+ },
1022
+ alerts: {
1023
+ description: 'Alerts for this stop.',
1024
+ type: 'array',
1025
+ items: {
1026
+ $ref: '#/components/schemas/Alert'
1027
+ }
1028
+ }
1029
+ }
897
1030
  };
898
1031
  var RiderCategorySchema = {
899
- type: "object",
900
- required: ["riderCategoryName", "isDefaultFareCategory"],
901
- properties: {
902
- riderCategoryName: {
903
- description: "Rider category name as displayed to the rider.",
904
- type: "string"
905
- },
906
- isDefaultFareCategory: {
907
- description: "Specifies if this category should be considered the default (i.e. the main category displayed to riders).",
908
- type: "boolean"
909
- },
910
- eligibilityUrl: {
911
- description: "URL to a web page providing detailed information about the rider category and/or its eligibility criteria.",
912
- type: "string"
913
- }
914
- }
1032
+ type: 'object',
1033
+ required: ['riderCategoryName', 'isDefaultFareCategory'],
1034
+ properties: {
1035
+ riderCategoryName: {
1036
+ description: 'Rider category name as displayed to the rider.',
1037
+ type: 'string'
1038
+ },
1039
+ isDefaultFareCategory: {
1040
+ description:
1041
+ 'Specifies if this category should be considered the default (i.e. the main category displayed to riders).',
1042
+ type: 'boolean'
1043
+ },
1044
+ eligibilityUrl: {
1045
+ description:
1046
+ 'URL to a web page providing detailed information about the rider category and/or its eligibility criteria.',
1047
+ type: 'string'
1048
+ }
1049
+ }
915
1050
  };
916
1051
  var FareMediaTypeSchema = {
917
- type: "string",
918
- enum: ["NONE", "PAPER_TICKET", "TRANSIT_CARD", "CONTACTLESS_EMV", "MOBILE_APP"],
919
- enumDescriptions: {
920
- NONE: "No fare media involved (e.g., cash payment)",
921
- PAPER_TICKET: "Physical paper ticket",
922
- TRANSIT_CARD: "Physical transit card with stored value",
923
- CONTACTLESS_EMV: "cEMV (contactless payment)",
924
- MOBILE_APP: "Mobile app with virtual transit cards/passes"
925
- }
1052
+ type: 'string',
1053
+ enum: ['NONE', 'PAPER_TICKET', 'TRANSIT_CARD', 'CONTACTLESS_EMV', 'MOBILE_APP'],
1054
+ enumDescriptions: {
1055
+ NONE: 'No fare media involved (e.g., cash payment)',
1056
+ PAPER_TICKET: 'Physical paper ticket',
1057
+ TRANSIT_CARD: 'Physical transit card with stored value',
1058
+ CONTACTLESS_EMV: 'cEMV (contactless payment)',
1059
+ MOBILE_APP: 'Mobile app with virtual transit cards/passes'
1060
+ }
926
1061
  };
927
1062
  var FareMediaSchema = {
928
- type: "object",
929
- required: ["fareMediaType"],
930
- properties: {
931
- fareMediaName: {
932
- description: "Name of the fare media. Required for transit cards and mobile apps.",
933
- type: "string"
934
- },
935
- fareMediaType: {
936
- description: "The type of fare media.",
937
- "$ref": "#/components/schemas/FareMediaType"
938
- }
939
- }
1063
+ type: 'object',
1064
+ required: ['fareMediaType'],
1065
+ properties: {
1066
+ fareMediaName: {
1067
+ description: 'Name of the fare media. Required for transit cards and mobile apps.',
1068
+ type: 'string'
1069
+ },
1070
+ fareMediaType: {
1071
+ description: 'The type of fare media.',
1072
+ $ref: '#/components/schemas/FareMediaType'
1073
+ }
1074
+ }
940
1075
  };
941
1076
  var FareProductSchema = {
942
- type: "object",
943
- required: ["name", "amount", "currency"],
944
- properties: {
945
- name: {
946
- description: "The name of the fare product as displayed to riders.",
947
- type: "string"
948
- },
949
- amount: {
950
- description: "The cost of the fare product. May be negative to represent transfer discounts. May be zero to represent a fare product that is free.",
951
- type: "number"
952
- },
953
- currency: {
954
- description: "ISO 4217 currency code. The currency of the cost of the fare product.",
955
- type: "string"
956
- },
957
- riderCategory: {
958
- "$ref": "#/components/schemas/RiderCategory"
959
- },
960
- media: {
961
- "$ref": "#/components/schemas/FareMedia"
962
- }
963
- }
1077
+ type: 'object',
1078
+ required: ['name', 'amount', 'currency'],
1079
+ properties: {
1080
+ name: {
1081
+ description: 'The name of the fare product as displayed to riders.',
1082
+ type: 'string'
1083
+ },
1084
+ amount: {
1085
+ description:
1086
+ 'The cost of the fare product. May be negative to represent transfer discounts. May be zero to represent a fare product that is free.',
1087
+ type: 'number'
1088
+ },
1089
+ currency: {
1090
+ description: 'ISO 4217 currency code. The currency of the cost of the fare product.',
1091
+ type: 'string'
1092
+ },
1093
+ riderCategory: {
1094
+ $ref: '#/components/schemas/RiderCategory'
1095
+ },
1096
+ media: {
1097
+ $ref: '#/components/schemas/FareMedia'
1098
+ }
1099
+ }
964
1100
  };
965
1101
  var FareTransferRuleSchema = {
966
- type: "string",
967
- enum: ["A_AB", "A_AB_B", "AB"]
1102
+ type: 'string',
1103
+ enum: ['A_AB', 'A_AB_B', 'AB']
968
1104
  };
969
1105
  var FareTransferSchema = {
970
- type: "object",
971
- description: `The concept is derived from: https://gtfs.org/documentation/schedule/reference/#fare_transfer_rulestxt
1106
+ type: 'object',
1107
+ description: `The concept is derived from: https://gtfs.org/documentation/schedule/reference/#fare_transfer_rulestxt
972
1108
 
973
1109
  Terminology:
974
1110
  - **Leg**: An itinerary leg as described by the \`Leg\` type of this API description.
@@ -985,165 +1121,165 @@ The fare transfer rule is used to derive the final set of products of the itiner
985
1121
 
986
1122
  An itinerary \`Leg\` references the index of the fare transfer and the index of the effective fare leg in this transfer it belongs to.
987
1123
  `,
988
- required: ["effectiveFareLegProducts"],
989
- properties: {
990
- rule: {
991
- "$ref": "#/components/schemas/FareTransferRule"
992
- },
993
- transferProducts: {
994
- type: "array",
995
- items: {
996
- "$ref": "#/components/schemas/FareProduct"
997
- }
998
- },
999
- effectiveFareLegProducts: {
1000
- description: `Lists all valid fare products for the effective fare legs.
1124
+ required: ['effectiveFareLegProducts'],
1125
+ properties: {
1126
+ rule: {
1127
+ $ref: '#/components/schemas/FareTransferRule'
1128
+ },
1129
+ transferProducts: {
1130
+ type: 'array',
1131
+ items: {
1132
+ $ref: '#/components/schemas/FareProduct'
1133
+ }
1134
+ },
1135
+ effectiveFareLegProducts: {
1136
+ description: `Lists all valid fare products for the effective fare legs.
1001
1137
  This is an \`array<array<FareProduct>>\` where the inner array
1002
1138
  lists all possible fare products that would cover this effective fare leg.
1003
1139
  Each "effective fare leg" can have multiple options for adult/child/weekly/monthly/day/one-way tickets etc.
1004
1140
  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\`)
1005
1141
  and the inner array as OR (you can choose which ticket to buy)
1006
1142
  `,
1007
- type: "array",
1008
- items: {
1009
- type: "array",
1010
- items: {
1011
- type: "array",
1012
- items: {
1013
- "$ref": "#/components/schemas/FareProduct"
1014
- }
1015
- }
1016
- }
1017
- }
1018
- }
1143
+ type: 'array',
1144
+ items: {
1145
+ type: 'array',
1146
+ items: {
1147
+ type: 'array',
1148
+ items: {
1149
+ $ref: '#/components/schemas/FareProduct'
1150
+ }
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1019
1155
  };
1020
1156
  var ItinerarySchema = {
1021
- type: "object",
1022
- required: ["duration", "startTime", "endTime", "transfers", "legs"],
1023
- properties: {
1024
- duration: {
1025
- description: "journey duration in seconds",
1026
- type: "integer"
1027
- },
1028
- startTime: {
1029
- type: "string",
1030
- format: "date-time",
1031
- description: "journey departure time"
1032
- },
1033
- endTime: {
1034
- type: "string",
1035
- format: "date-time",
1036
- description: "journey arrival time"
1037
- },
1038
- transfers: {
1039
- type: "integer",
1040
- description: "The number of transfers this trip has."
1041
- },
1042
- legs: {
1043
- description: "Journey legs",
1044
- type: "array",
1045
- items: {
1046
- "$ref": "#/components/schemas/Leg"
1047
- }
1048
- },
1049
- fareTransfers: {
1050
- description: "Fare information",
1051
- type: "array",
1052
- items: {
1053
- "$ref": "#/components/schemas/FareTransfer"
1054
- }
1055
- }
1056
- }
1157
+ type: 'object',
1158
+ required: ['duration', 'startTime', 'endTime', 'transfers', 'legs'],
1159
+ properties: {
1160
+ duration: {
1161
+ description: 'journey duration in seconds',
1162
+ type: 'integer'
1163
+ },
1164
+ startTime: {
1165
+ type: 'string',
1166
+ format: 'date-time',
1167
+ description: 'journey departure time'
1168
+ },
1169
+ endTime: {
1170
+ type: 'string',
1171
+ format: 'date-time',
1172
+ description: 'journey arrival time'
1173
+ },
1174
+ transfers: {
1175
+ type: 'integer',
1176
+ description: 'The number of transfers this trip has.'
1177
+ },
1178
+ legs: {
1179
+ description: 'Journey legs',
1180
+ type: 'array',
1181
+ items: {
1182
+ $ref: '#/components/schemas/Leg'
1183
+ }
1184
+ },
1185
+ fareTransfers: {
1186
+ description: 'Fare information',
1187
+ type: 'array',
1188
+ items: {
1189
+ $ref: '#/components/schemas/FareTransfer'
1190
+ }
1191
+ }
1192
+ }
1057
1193
  };
1058
1194
  var TransferSchema = {
1059
- description: "transfer from one location to another",
1060
- type: "object",
1061
- required: ["to"],
1062
- properties: {
1063
- to: {
1064
- "$ref": "#/components/schemas/Place"
1065
- },
1066
- default: {
1067
- type: "number",
1068
- description: `optional; missing if the GTFS did not contain a transfer
1195
+ description: 'transfer from one location to another',
1196
+ type: 'object',
1197
+ required: ['to'],
1198
+ properties: {
1199
+ to: {
1200
+ $ref: '#/components/schemas/Place'
1201
+ },
1202
+ default: {
1203
+ type: 'number',
1204
+ description: `optional; missing if the GTFS did not contain a transfer
1069
1205
  transfer duration in minutes according to GTFS (+heuristics)
1070
1206
  `
1071
- },
1072
- foot: {
1073
- type: "number",
1074
- description: `optional; missing if no path was found (timetable / osr)
1207
+ },
1208
+ foot: {
1209
+ type: 'number',
1210
+ description: `optional; missing if no path was found (timetable / osr)
1075
1211
  transfer duration in minutes for the foot profile
1076
1212
  `
1077
- },
1078
- footRouted: {
1079
- type: "number",
1080
- description: `optional; missing if no path was found with foot routing
1213
+ },
1214
+ footRouted: {
1215
+ type: 'number',
1216
+ description: `optional; missing if no path was found with foot routing
1081
1217
  transfer duration in minutes for the foot profile
1082
1218
  `
1083
- },
1084
- wheelchair: {
1085
- type: "number",
1086
- description: `optional; missing if no path was found with the wheelchair profile
1219
+ },
1220
+ wheelchair: {
1221
+ type: 'number',
1222
+ description: `optional; missing if no path was found with the wheelchair profile
1087
1223
  transfer duration in minutes for the wheelchair profile
1088
1224
  `
1089
- },
1090
- wheelchairRouted: {
1091
- type: "number",
1092
- description: `optional; missing if no path was found with the wheelchair profile
1225
+ },
1226
+ wheelchairRouted: {
1227
+ type: 'number',
1228
+ description: `optional; missing if no path was found with the wheelchair profile
1093
1229
  transfer duration in minutes for the wheelchair profile
1094
1230
  `
1095
- },
1096
- wheelchairUsesElevator: {
1097
- type: "boolean",
1098
- description: `optional; missing if no path was found with the wheelchair profile
1231
+ },
1232
+ wheelchairUsesElevator: {
1233
+ type: 'boolean',
1234
+ description: `optional; missing if no path was found with the wheelchair profile
1099
1235
  true if the wheelchair path uses an elevator
1100
1236
  `
1101
- },
1102
- car: {
1103
- type: "number",
1104
- description: `optional; missing if no path was found with car routing
1237
+ },
1238
+ car: {
1239
+ type: 'number',
1240
+ description: `optional; missing if no path was found with car routing
1105
1241
  transfer duration in minutes for the car profile
1106
1242
  `
1107
- }
1108
- }
1243
+ }
1244
+ }
1109
1245
  };
1110
1246
 
1111
1247
  export {
1112
- AlertCauseSchema,
1113
- AlertEffectSchema,
1114
- AlertSeverityLevelSchema,
1115
- TimeRangeSchema,
1116
- AlertSchema,
1117
- DurationSchema,
1118
- AreaSchema,
1119
- TokenSchema,
1120
- LocationTypeSchema,
1121
- MatchSchema,
1122
- ElevationCostsSchema,
1123
- PedestrianProfileSchema,
1124
- ModeSchema,
1125
- VertexTypeSchema,
1126
- PickupDropoffTypeSchema,
1127
- PlaceSchema,
1128
- ReachablePlaceSchema,
1129
- ReachableSchema,
1130
- StopTimeSchema,
1131
- TripInfoSchema,
1132
- TripSegmentSchema,
1133
- DirectionSchema,
1134
- EncodedPolylineSchema,
1135
- StepInstructionSchema,
1136
- RentalFormFactorSchema,
1137
- RentalPropulsionTypeSchema,
1138
- RentalReturnConstraintSchema,
1139
- RentalSchema,
1140
- LegSchema,
1141
- RiderCategorySchema,
1142
- FareMediaTypeSchema,
1143
- FareMediaSchema,
1144
- FareProductSchema,
1145
- FareTransferRuleSchema,
1146
- FareTransferSchema,
1147
- ItinerarySchema,
1148
- TransferSchema
1248
+ AlertCauseSchema,
1249
+ AlertEffectSchema,
1250
+ AlertSeverityLevelSchema,
1251
+ TimeRangeSchema,
1252
+ AlertSchema,
1253
+ DurationSchema,
1254
+ AreaSchema,
1255
+ TokenSchema,
1256
+ LocationTypeSchema,
1257
+ MatchSchema,
1258
+ ElevationCostsSchema,
1259
+ PedestrianProfileSchema,
1260
+ ModeSchema,
1261
+ VertexTypeSchema,
1262
+ PickupDropoffTypeSchema,
1263
+ PlaceSchema,
1264
+ ReachablePlaceSchema,
1265
+ ReachableSchema,
1266
+ StopTimeSchema,
1267
+ TripInfoSchema,
1268
+ TripSegmentSchema,
1269
+ DirectionSchema,
1270
+ EncodedPolylineSchema,
1271
+ StepInstructionSchema,
1272
+ RentalFormFactorSchema,
1273
+ RentalPropulsionTypeSchema,
1274
+ RentalReturnConstraintSchema,
1275
+ RentalSchema,
1276
+ LegSchema,
1277
+ RiderCategorySchema,
1278
+ FareMediaTypeSchema,
1279
+ FareMediaSchema,
1280
+ FareProductSchema,
1281
+ FareTransferRuleSchema,
1282
+ FareTransferSchema,
1283
+ ItinerarySchema,
1284
+ TransferSchema
1149
1285
  };