@motis-project/motis-client 2.0.83 → 2.0.84
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/README.md +9 -9
- package/dist/chunk-CAW6R2LI.js +1049 -913
- package/dist/chunk-IHFNO6R3.js +91 -0
- package/dist/chunk-VOTN5CAZ.js +62 -62
- package/dist/index.d.ts +128 -3
- package/dist/index.js +103 -103
- package/dist/schemas.gen.d.ts +1045 -877
- package/dist/schemas.gen.js +75 -75
- package/dist/services.gen.d.ts +85 -17
- package/dist/services.gen.js +27 -27
- package/dist/types.gen.d.ts +1757 -1594
- package/dist/types.gen.js +1 -1
- package/package.json +1 -1
package/dist/chunk-CAW6R2LI.js
CHANGED
|
@@ -1,270 +1,297 @@
|
|
|
1
1
|
// openapi/schemas.gen.ts
|
|
2
2
|
var AlertCauseSchema = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
38
|
+
description: 'The severity of the alert.',
|
|
39
|
+
type: 'string',
|
|
40
|
+
enum: ['UNKNOWN_SEVERITY', 'INFO', 'WARNING', 'SEVERE']
|
|
16
41
|
};
|
|
17
42
|
var TimeRangeSchema = {
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
59
|
+
type: 'string',
|
|
60
|
+
format: 'date-time'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
38
63
|
};
|
|
39
64
|
var AlertSchema = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
154
|
+
type: 'string'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
132
157
|
};
|
|
133
158
|
var DurationSchema = {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
210
|
+
description: 'location type',
|
|
211
|
+
type: 'string',
|
|
212
|
+
enum: ['ADDRESS', 'PLACE', 'STOP']
|
|
187
213
|
};
|
|
188
214
|
var MatchSchema = {
|
|
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
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
-
|
|
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
|
-
|
|
259
|
-
|
|
285
|
+
type: 'string',
|
|
286
|
+
enum: ['NONE', 'LOW', 'HIGH']
|
|
260
287
|
};
|
|
261
288
|
var PedestrianProfileSchema = {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
289
|
+
description: 'Different accessibility profiles for pedestrians.',
|
|
290
|
+
type: 'string',
|
|
291
|
+
enum: ['FOOT', 'WHEELCHAIR']
|
|
265
292
|
};
|
|
266
293
|
var ModeSchema = {
|
|
267
|
-
|
|
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
|
-
|
|
298
|
-
|
|
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
|
-
|
|
302
|
-
|
|
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
|
-
|
|
359
|
+
enum: ['NORMAL', 'BIKESHARE', 'TRANSIT']
|
|
307
360
|
};
|
|
308
361
|
var PickupDropoffTypeSchema = {
|
|
309
|
-
|
|
310
|
-
|
|
362
|
+
type: 'string',
|
|
363
|
+
description: `- \`NORMAL\` - entry/exit is possible normally
|
|
311
364
|
- \`NOT_ALLOWED\` - entry/exit is not allowed
|
|
312
365
|
`,
|
|
313
|
-
|
|
366
|
+
enum: ['NORMAL', 'NOT_ALLOWED']
|
|
314
367
|
};
|
|
315
368
|
var PlaceSchema = {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
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
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
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
|
-
|
|
591
|
-
|
|
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
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
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
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
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
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
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
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
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
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
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
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
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
|
-
|
|
685
|
-
|
|
792
|
+
type: 'string',
|
|
793
|
+
enum: ['BICYCLE', 'CARGO_BICYCLE', 'CAR', 'MOPED', 'SCOOTER_STANDING', 'SCOOTER_SEATED', 'OTHER']
|
|
686
794
|
};
|
|
687
795
|
var RentalPropulsionTypeSchema = {
|
|
688
|
-
|
|
689
|
-
|
|
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
|
-
|
|
693
|
-
|
|
809
|
+
type: 'string',
|
|
810
|
+
enum: ['NONE', 'ANY_STATION', 'ROUNDTRIP_STATION']
|
|
694
811
|
};
|
|
695
812
|
var RentalSchema = {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
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
|
-
|
|
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
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
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
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
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
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
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
|
-
|
|
884
|
-
|
|
885
|
-
|
|
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
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
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
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
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
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
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
|
-
|
|
967
|
-
|
|
1102
|
+
type: 'string',
|
|
1103
|
+
enum: ['A_AB', 'A_AB_B', 'AB']
|
|
968
1104
|
};
|
|
969
1105
|
var FareTransferSchema = {
|
|
970
|
-
|
|
971
|
-
|
|
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
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
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
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
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
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
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
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
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
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
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
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
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
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
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
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
};
|