@motis-project/motis-client 2.1.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-35GMB6DP.js +1232 -0
- package/dist/chunk-5QEG6DOF.js +1247 -0
- package/dist/chunk-7PIP6KRC.js +1055 -916
- package/dist/chunk-7UKCGCXT.js +1247 -0
- package/dist/chunk-EM7IAOVY.js +91 -0
- package/dist/chunk-IHFNO6R3.js +62 -62
- package/dist/chunk-RM52T2X5.js +1056 -917
- package/dist/chunk-ZSHHWD3H.js +91 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/schemas.gen.d.ts +83 -8
- package/dist/schemas.gen.js +7 -1
- package/dist/services.gen.d.ts +11 -11
- package/dist/services.gen.js +1 -1
- package/dist/types.gen.d.ts +127 -24
- package/package.json +1 -1
package/dist/chunk-RM52T2X5.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\`
|
|
@@ -295,139 +322,168 @@ var ModeSchema = {
|
|
|
295
322
|
- \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
|
|
296
323
|
- \`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.
|
|
297
324
|
`,
|
|
298
|
-
|
|
299
|
-
|
|
325
|
+
type: 'string',
|
|
326
|
+
enum: [
|
|
327
|
+
'WALK',
|
|
328
|
+
'BIKE',
|
|
329
|
+
'RENTAL',
|
|
330
|
+
'CAR',
|
|
331
|
+
'CAR_PARKING',
|
|
332
|
+
'CAR_DROPOFF',
|
|
333
|
+
'ODM',
|
|
334
|
+
'FLEX',
|
|
335
|
+
'TRANSIT',
|
|
336
|
+
'TRAM',
|
|
337
|
+
'SUBWAY',
|
|
338
|
+
'FERRY',
|
|
339
|
+
'AIRPLANE',
|
|
340
|
+
'METRO',
|
|
341
|
+
'BUS',
|
|
342
|
+
'COACH',
|
|
343
|
+
'RAIL',
|
|
344
|
+
'HIGHSPEED_RAIL',
|
|
345
|
+
'LONG_DISTANCE',
|
|
346
|
+
'NIGHT_RAIL',
|
|
347
|
+
'REGIONAL_FAST_RAIL',
|
|
348
|
+
'REGIONAL_RAIL',
|
|
349
|
+
'CABLE_CAR',
|
|
350
|
+
'FUNICULAR',
|
|
351
|
+
'AREAL_LIFT',
|
|
352
|
+
'OTHER'
|
|
353
|
+
]
|
|
300
354
|
};
|
|
301
355
|
var VertexTypeSchema = {
|
|
302
|
-
|
|
303
|
-
|
|
356
|
+
type: 'string',
|
|
357
|
+
description: `- \`NORMAL\` - latitude / longitude coordinate or address
|
|
304
358
|
- \`BIKESHARE\` - bike sharing station
|
|
305
359
|
- \`TRANSIT\` - transit stop
|
|
306
360
|
`,
|
|
307
|
-
|
|
361
|
+
enum: ['NORMAL', 'BIKESHARE', 'TRANSIT']
|
|
308
362
|
};
|
|
309
363
|
var PickupDropoffTypeSchema = {
|
|
310
|
-
|
|
311
|
-
|
|
364
|
+
type: 'string',
|
|
365
|
+
description: `- \`NORMAL\` - entry/exit is possible normally
|
|
312
366
|
- \`NOT_ALLOWED\` - entry/exit is not allowed
|
|
313
367
|
`,
|
|
314
|
-
|
|
368
|
+
enum: ['NORMAL', 'NOT_ALLOWED']
|
|
315
369
|
};
|
|
316
370
|
var PlaceSchema = {
|
|
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
|
-
|
|
365
|
-
|
|
371
|
+
type: 'object',
|
|
372
|
+
required: ['name', 'lat', 'lon', 'level'],
|
|
373
|
+
properties: {
|
|
374
|
+
name: {
|
|
375
|
+
description: 'name of the transit stop / PoI / address',
|
|
376
|
+
type: 'string'
|
|
377
|
+
},
|
|
378
|
+
stopId: {
|
|
379
|
+
description: "The ID of the stop. This is often something that users don't care about.",
|
|
380
|
+
type: 'string'
|
|
381
|
+
},
|
|
382
|
+
lat: {
|
|
383
|
+
description: 'latitude',
|
|
384
|
+
type: 'number'
|
|
385
|
+
},
|
|
386
|
+
lon: {
|
|
387
|
+
description: 'longitude',
|
|
388
|
+
type: 'number'
|
|
389
|
+
},
|
|
390
|
+
level: {
|
|
391
|
+
description: 'level according to OpenStreetMap',
|
|
392
|
+
type: 'number'
|
|
393
|
+
},
|
|
394
|
+
arrival: {
|
|
395
|
+
description: 'arrival time',
|
|
396
|
+
type: 'string',
|
|
397
|
+
format: 'date-time'
|
|
398
|
+
},
|
|
399
|
+
departure: {
|
|
400
|
+
description: 'departure time',
|
|
401
|
+
type: 'string',
|
|
402
|
+
format: 'date-time'
|
|
403
|
+
},
|
|
404
|
+
scheduledArrival: {
|
|
405
|
+
description: 'scheduled arrival time',
|
|
406
|
+
type: 'string',
|
|
407
|
+
format: 'date-time'
|
|
408
|
+
},
|
|
409
|
+
scheduledDeparture: {
|
|
410
|
+
description: 'scheduled departure time',
|
|
411
|
+
type: 'string',
|
|
412
|
+
format: 'date-time'
|
|
413
|
+
},
|
|
414
|
+
scheduledTrack: {
|
|
415
|
+
description: 'scheduled track from the static schedule timetable dataset',
|
|
416
|
+
type: 'string'
|
|
417
|
+
},
|
|
418
|
+
track: {
|
|
419
|
+
description: `The current track/platform information, updated with real-time updates if available.
|
|
366
420
|
Can be missing if neither real-time updates nor the schedule timetable contains track information.
|
|
367
421
|
`,
|
|
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
|
-
|
|
414
|
-
|
|
422
|
+
type: 'string'
|
|
423
|
+
},
|
|
424
|
+
description: {
|
|
425
|
+
description: 'description of the location that provides more detailed information',
|
|
426
|
+
type: 'string'
|
|
427
|
+
},
|
|
428
|
+
vertexType: {
|
|
429
|
+
$ref: '#/components/schemas/VertexType'
|
|
430
|
+
},
|
|
431
|
+
pickupType: {
|
|
432
|
+
description:
|
|
433
|
+
'Type of pickup. It could be disallowed due to schedule, skipped stops or cancellations.',
|
|
434
|
+
$ref: '#/components/schemas/PickupDropoffType'
|
|
435
|
+
},
|
|
436
|
+
dropoffType: {
|
|
437
|
+
description:
|
|
438
|
+
'Type of dropoff. It could be disallowed due to schedule, skipped stops or cancellations.',
|
|
439
|
+
$ref: '#/components/schemas/PickupDropoffType'
|
|
440
|
+
},
|
|
441
|
+
cancelled: {
|
|
442
|
+
description: 'Whether this stop is cancelled due to the realtime situation.',
|
|
443
|
+
type: 'boolean'
|
|
444
|
+
},
|
|
445
|
+
alerts: {
|
|
446
|
+
description: 'Alerts for this stop.',
|
|
447
|
+
type: 'array',
|
|
448
|
+
items: {
|
|
449
|
+
$ref: '#/components/schemas/Alert'
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
flex: {
|
|
453
|
+
description: 'for `FLEX` transports, the flex location area or location group name',
|
|
454
|
+
type: 'string'
|
|
455
|
+
},
|
|
456
|
+
flexId: {
|
|
457
|
+
description: 'for `FLEX` transports, the flex location area ID or location group ID',
|
|
458
|
+
type: 'string'
|
|
459
|
+
},
|
|
460
|
+
flexStartPickupDropOffWindow: {
|
|
461
|
+
description: 'Time that on-demand service becomes available',
|
|
462
|
+
type: 'string',
|
|
463
|
+
format: 'date-time'
|
|
464
|
+
},
|
|
465
|
+
flexEndPickupDropOffWindow: {
|
|
466
|
+
description: 'Time that on-demand service ends',
|
|
467
|
+
type: 'string',
|
|
468
|
+
format: 'date-time'
|
|
469
|
+
}
|
|
470
|
+
}
|
|
415
471
|
};
|
|
416
472
|
var ReachablePlaceSchema = {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
473
|
+
description: 'Place reachable by One-to-All',
|
|
474
|
+
type: 'object',
|
|
475
|
+
properties: {
|
|
476
|
+
place: {
|
|
477
|
+
$ref: '#/components/schemas/Place',
|
|
478
|
+
description: 'Place reached by One-to-All'
|
|
479
|
+
},
|
|
480
|
+
duration: {
|
|
481
|
+
type: 'integer',
|
|
482
|
+
description: 'Total travel duration'
|
|
483
|
+
},
|
|
484
|
+
k: {
|
|
485
|
+
type: 'integer',
|
|
486
|
+
description: `k is the smallest number, for which a journey with the shortest duration and at most k-1 transfers exist.
|
|
431
487
|
You can think of k as the number of connections used.
|
|
432
488
|
|
|
433
489
|
In more detail:
|
|
@@ -436,335 +492,413 @@ k=0: No connection, e.g. for the one location
|
|
|
436
492
|
k=1: Direct connection
|
|
437
493
|
k=2: Connection with 1 transfer
|
|
438
494
|
`
|
|
439
|
-
|
|
440
|
-
|
|
495
|
+
}
|
|
496
|
+
}
|
|
441
497
|
};
|
|
442
498
|
var ReachableSchema = {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
499
|
+
description: 'Object containing all reachable places by One-to-All search',
|
|
500
|
+
type: 'object',
|
|
501
|
+
properties: {
|
|
502
|
+
one: {
|
|
503
|
+
$ref: '#/components/schemas/Place',
|
|
504
|
+
description: 'One location used in One-to-All search'
|
|
505
|
+
},
|
|
506
|
+
all: {
|
|
507
|
+
description: 'List of locations reachable by One-to-All',
|
|
508
|
+
type: 'array',
|
|
509
|
+
items: {
|
|
510
|
+
$ref: '#/components/schemas/ReachablePlace'
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
458
514
|
};
|
|
459
515
|
var StopTimeSchema = {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
516
|
+
description: 'departure or arrival event at a stop',
|
|
517
|
+
type: 'object',
|
|
518
|
+
required: [
|
|
519
|
+
'place',
|
|
520
|
+
'mode',
|
|
521
|
+
'realTime',
|
|
522
|
+
'headsign',
|
|
523
|
+
'agencyId',
|
|
524
|
+
'agencyName',
|
|
525
|
+
'agencyUrl',
|
|
526
|
+
'tripId',
|
|
527
|
+
'routeShortName',
|
|
528
|
+
'pickupDropoffType',
|
|
529
|
+
'cancelled',
|
|
530
|
+
'tripCancelled',
|
|
531
|
+
'source'
|
|
532
|
+
],
|
|
533
|
+
properties: {
|
|
534
|
+
place: {
|
|
535
|
+
$ref: '#/components/schemas/Place',
|
|
536
|
+
description: 'information about the stop place and time'
|
|
537
|
+
},
|
|
538
|
+
mode: {
|
|
539
|
+
$ref: '#/components/schemas/Mode',
|
|
540
|
+
description: 'Transport mode for this leg'
|
|
541
|
+
},
|
|
542
|
+
realTime: {
|
|
543
|
+
description: 'Whether there is real-time data about this leg',
|
|
544
|
+
type: 'boolean'
|
|
545
|
+
},
|
|
546
|
+
headsign: {
|
|
547
|
+
description: `For transit legs, the headsign of the bus or train being used.
|
|
478
548
|
For non-transit legs, null
|
|
479
549
|
`,
|
|
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
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
550
|
+
type: 'string'
|
|
551
|
+
},
|
|
552
|
+
agencyId: {
|
|
553
|
+
type: 'string'
|
|
554
|
+
},
|
|
555
|
+
agencyName: {
|
|
556
|
+
type: 'string'
|
|
557
|
+
},
|
|
558
|
+
agencyUrl: {
|
|
559
|
+
type: 'string'
|
|
560
|
+
},
|
|
561
|
+
routeColor: {
|
|
562
|
+
type: 'string'
|
|
563
|
+
},
|
|
564
|
+
routeTextColor: {
|
|
565
|
+
type: 'string'
|
|
566
|
+
},
|
|
567
|
+
tripId: {
|
|
568
|
+
type: 'string'
|
|
569
|
+
},
|
|
570
|
+
routeShortName: {
|
|
571
|
+
type: 'string'
|
|
572
|
+
},
|
|
573
|
+
pickupDropoffType: {
|
|
574
|
+
description:
|
|
575
|
+
'Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations',
|
|
576
|
+
$ref: '#/components/schemas/PickupDropoffType'
|
|
577
|
+
},
|
|
578
|
+
cancelled: {
|
|
579
|
+
description:
|
|
580
|
+
'Whether the departure/arrival is cancelled due to the realtime situation (either because the stop is skipped or because the entire trip is cancelled).',
|
|
581
|
+
type: 'boolean'
|
|
582
|
+
},
|
|
583
|
+
tripCancelled: {
|
|
584
|
+
description: 'Whether the entire trip is cancelled due to the realtime situation.',
|
|
585
|
+
type: 'boolean'
|
|
586
|
+
},
|
|
587
|
+
source: {
|
|
588
|
+
description: 'Filename and line number where this trip is from',
|
|
589
|
+
type: 'string'
|
|
590
|
+
}
|
|
591
|
+
}
|
|
520
592
|
};
|
|
521
593
|
var TripInfoSchema = {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
594
|
+
description: 'trip id and name',
|
|
595
|
+
type: 'object',
|
|
596
|
+
required: ['tripId', 'routeShortName'],
|
|
597
|
+
properties: {
|
|
598
|
+
tripId: {
|
|
599
|
+
description: 'trip ID (dataset trip id prefixed with the dataset tag)',
|
|
600
|
+
type: 'string'
|
|
601
|
+
},
|
|
602
|
+
routeShortName: {
|
|
603
|
+
description: 'trip display name',
|
|
604
|
+
type: 'string'
|
|
605
|
+
}
|
|
606
|
+
}
|
|
535
607
|
};
|
|
536
608
|
var TripSegmentSchema = {
|
|
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
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
609
|
+
description: 'trip segment between two stops to show a trip on a map',
|
|
610
|
+
type: 'object',
|
|
611
|
+
required: [
|
|
612
|
+
'trips',
|
|
613
|
+
'mode',
|
|
614
|
+
'distance',
|
|
615
|
+
'from',
|
|
616
|
+
'to',
|
|
617
|
+
'departure',
|
|
618
|
+
'arrival',
|
|
619
|
+
'scheduledArrival',
|
|
620
|
+
'scheduledDeparture',
|
|
621
|
+
'realTime',
|
|
622
|
+
'polyline'
|
|
623
|
+
],
|
|
624
|
+
properties: {
|
|
625
|
+
trips: {
|
|
626
|
+
type: 'array',
|
|
627
|
+
items: {
|
|
628
|
+
$ref: '#/components/schemas/TripInfo'
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
routeColor: {
|
|
632
|
+
type: 'string'
|
|
633
|
+
},
|
|
634
|
+
mode: {
|
|
635
|
+
$ref: '#/components/schemas/Mode',
|
|
636
|
+
description: 'Transport mode for this leg'
|
|
637
|
+
},
|
|
638
|
+
distance: {
|
|
639
|
+
type: 'number',
|
|
640
|
+
description: 'distance in meters'
|
|
641
|
+
},
|
|
642
|
+
from: {
|
|
643
|
+
$ref: '#/components/schemas/Place'
|
|
644
|
+
},
|
|
645
|
+
to: {
|
|
646
|
+
$ref: '#/components/schemas/Place'
|
|
647
|
+
},
|
|
648
|
+
departure: {
|
|
649
|
+
description: 'departure time',
|
|
650
|
+
type: 'string',
|
|
651
|
+
format: 'date-time'
|
|
652
|
+
},
|
|
653
|
+
arrival: {
|
|
654
|
+
description: 'arrival time',
|
|
655
|
+
type: 'string',
|
|
656
|
+
format: 'date-time'
|
|
657
|
+
},
|
|
658
|
+
scheduledDeparture: {
|
|
659
|
+
description: 'scheduled departure time',
|
|
660
|
+
type: 'string',
|
|
661
|
+
format: 'date-time'
|
|
662
|
+
},
|
|
663
|
+
scheduledArrival: {
|
|
664
|
+
description: 'scheduled arrival time',
|
|
665
|
+
type: 'string',
|
|
666
|
+
format: 'date-time'
|
|
667
|
+
},
|
|
668
|
+
realTime: {
|
|
669
|
+
description: 'Whether there is real-time data about this leg',
|
|
670
|
+
type: 'boolean'
|
|
671
|
+
},
|
|
672
|
+
polyline: {
|
|
673
|
+
description:
|
|
674
|
+
'Google polyline encoded coordinate sequence (with precision 5) where the trip travels on this segment.',
|
|
675
|
+
type: 'string'
|
|
676
|
+
}
|
|
677
|
+
}
|
|
593
678
|
};
|
|
594
679
|
var DirectionSchema = {
|
|
595
|
-
|
|
596
|
-
|
|
680
|
+
type: 'string',
|
|
681
|
+
enum: [
|
|
682
|
+
'DEPART',
|
|
683
|
+
'HARD_LEFT',
|
|
684
|
+
'LEFT',
|
|
685
|
+
'SLIGHTLY_LEFT',
|
|
686
|
+
'CONTINUE',
|
|
687
|
+
'SLIGHTLY_RIGHT',
|
|
688
|
+
'RIGHT',
|
|
689
|
+
'HARD_RIGHT',
|
|
690
|
+
'CIRCLE_CLOCKWISE',
|
|
691
|
+
'CIRCLE_COUNTERCLOCKWISE',
|
|
692
|
+
'STAIRS',
|
|
693
|
+
'ELEVATOR',
|
|
694
|
+
'UTURN_LEFT',
|
|
695
|
+
'UTURN_RIGHT'
|
|
696
|
+
]
|
|
597
697
|
};
|
|
598
698
|
var EncodedPolylineSchema = {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
699
|
+
type: 'object',
|
|
700
|
+
required: ['points', 'precision', 'length'],
|
|
701
|
+
properties: {
|
|
702
|
+
points: {
|
|
703
|
+
description: 'The encoded points of the polyline using the Google polyline encoding.',
|
|
704
|
+
type: 'string'
|
|
705
|
+
},
|
|
706
|
+
precision: {
|
|
707
|
+
description: `The precision of the returned polyline (7 for /v1, 6 for /v2)
|
|
608
708
|
Be aware that with precision 7, coordinates with |longitude| > 107.37 are undefined/will overflow.
|
|
609
709
|
`,
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
710
|
+
type: 'integer'
|
|
711
|
+
},
|
|
712
|
+
length: {
|
|
713
|
+
description: 'The number of points in the string',
|
|
714
|
+
type: 'integer',
|
|
715
|
+
minimum: 0
|
|
716
|
+
}
|
|
717
|
+
}
|
|
618
718
|
};
|
|
619
719
|
var StepInstructionSchema = {
|
|
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
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
720
|
+
type: 'object',
|
|
721
|
+
required: [
|
|
722
|
+
'fromLevel',
|
|
723
|
+
'toLevel',
|
|
724
|
+
'polyline',
|
|
725
|
+
'relativeDirection',
|
|
726
|
+
'distance',
|
|
727
|
+
'streetName',
|
|
728
|
+
'exit',
|
|
729
|
+
'stayOn',
|
|
730
|
+
'area'
|
|
731
|
+
],
|
|
732
|
+
properties: {
|
|
733
|
+
relativeDirection: {
|
|
734
|
+
$ref: '#/components/schemas/Direction'
|
|
735
|
+
},
|
|
736
|
+
distance: {
|
|
737
|
+
description: 'The distance in meters that this step takes.',
|
|
738
|
+
type: 'number'
|
|
739
|
+
},
|
|
740
|
+
fromLevel: {
|
|
741
|
+
description: 'level where this segment starts, based on OpenStreetMap data',
|
|
742
|
+
type: 'number'
|
|
743
|
+
},
|
|
744
|
+
toLevel: {
|
|
745
|
+
description: 'level where this segment starts, based on OpenStreetMap data',
|
|
746
|
+
type: 'number'
|
|
747
|
+
},
|
|
748
|
+
osmWay: {
|
|
749
|
+
description: 'OpenStreetMap way index',
|
|
750
|
+
type: 'integer'
|
|
751
|
+
},
|
|
752
|
+
polyline: {
|
|
753
|
+
$ref: '#/components/schemas/EncodedPolyline'
|
|
754
|
+
},
|
|
755
|
+
streetName: {
|
|
756
|
+
description: 'The name of the street.',
|
|
757
|
+
type: 'string'
|
|
758
|
+
},
|
|
759
|
+
exit: {
|
|
760
|
+
description: `Not implemented!
|
|
651
761
|
When exiting a highway or traffic circle, the exit name/number.
|
|
652
762
|
`,
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
763
|
+
type: 'string'
|
|
764
|
+
},
|
|
765
|
+
stayOn: {
|
|
766
|
+
description: `Not implemented!
|
|
657
767
|
Indicates whether or not a street changes direction at an intersection.
|
|
658
768
|
`,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
769
|
+
type: 'boolean'
|
|
770
|
+
},
|
|
771
|
+
area: {
|
|
772
|
+
description: `Not implemented!
|
|
663
773
|
This step is on an open area, such as a plaza or train platform,
|
|
664
774
|
and thus the directions should say something like "cross"
|
|
665
775
|
`,
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
776
|
+
type: 'boolean'
|
|
777
|
+
},
|
|
778
|
+
toll: {
|
|
779
|
+
description:
|
|
780
|
+
'Indicates that a fee must be paid by general traffic to use a road, road bridge or road tunnel.',
|
|
781
|
+
type: 'boolean'
|
|
782
|
+
},
|
|
783
|
+
accessRestriction: {
|
|
784
|
+
description: `Experimental. Indicates whether access to this part of the route is restricted.
|
|
674
785
|
See: https://wiki.openstreetmap.org/wiki/Conditional_restrictions
|
|
675
786
|
`,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
787
|
+
type: 'string'
|
|
788
|
+
},
|
|
789
|
+
elevationUp: {
|
|
790
|
+
type: 'integer',
|
|
791
|
+
description: 'incline in meters across this path segment'
|
|
792
|
+
},
|
|
793
|
+
elevationDown: {
|
|
794
|
+
type: 'integer',
|
|
795
|
+
description: 'decline in meters across this path segment'
|
|
796
|
+
}
|
|
797
|
+
}
|
|
687
798
|
};
|
|
688
799
|
var RentalFormFactorSchema = {
|
|
689
|
-
|
|
690
|
-
|
|
800
|
+
type: 'string',
|
|
801
|
+
enum: ['BICYCLE', 'CARGO_BICYCLE', 'CAR', 'MOPED', 'SCOOTER_STANDING', 'SCOOTER_SEATED', 'OTHER']
|
|
691
802
|
};
|
|
692
803
|
var RentalPropulsionTypeSchema = {
|
|
693
|
-
|
|
694
|
-
|
|
804
|
+
type: 'string',
|
|
805
|
+
enum: [
|
|
806
|
+
'HUMAN',
|
|
807
|
+
'ELECTRIC_ASSIST',
|
|
808
|
+
'ELECTRIC',
|
|
809
|
+
'COMBUSTION',
|
|
810
|
+
'COMBUSTION_DIESEL',
|
|
811
|
+
'HYBRID',
|
|
812
|
+
'PLUG_IN_HYBRID',
|
|
813
|
+
'HYDROGEN_FUEL_CELL'
|
|
814
|
+
]
|
|
695
815
|
};
|
|
696
816
|
var RentalReturnConstraintSchema = {
|
|
697
|
-
|
|
698
|
-
|
|
817
|
+
type: 'string',
|
|
818
|
+
enum: ['NONE', 'ANY_STATION', 'ROUNDTRIP_STATION']
|
|
699
819
|
};
|
|
700
820
|
var RentalSchema = {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
821
|
+
description: 'Vehicle rental',
|
|
822
|
+
type: 'object',
|
|
823
|
+
required: ['systemId'],
|
|
824
|
+
properties: {
|
|
825
|
+
systemId: {
|
|
826
|
+
type: 'string',
|
|
827
|
+
description: 'Vehicle share system ID'
|
|
828
|
+
},
|
|
829
|
+
systemName: {
|
|
830
|
+
type: 'string',
|
|
831
|
+
description: 'Vehicle share system name'
|
|
832
|
+
},
|
|
833
|
+
url: {
|
|
834
|
+
type: 'string',
|
|
835
|
+
description: 'URL of the vehicle share system'
|
|
836
|
+
},
|
|
837
|
+
stationName: {
|
|
838
|
+
type: 'string',
|
|
839
|
+
description: 'Name of the station'
|
|
840
|
+
},
|
|
841
|
+
fromStationName: {
|
|
842
|
+
type: 'string',
|
|
843
|
+
description:
|
|
844
|
+
'Name of the station where the vehicle is picked up (empty for free floating vehicles)'
|
|
845
|
+
},
|
|
846
|
+
toStationName: {
|
|
847
|
+
type: 'string',
|
|
848
|
+
description:
|
|
849
|
+
'Name of the station where the vehicle is returned (empty for free floating vehicles)'
|
|
850
|
+
},
|
|
851
|
+
rentalUriAndroid: {
|
|
852
|
+
type: 'string',
|
|
853
|
+
description: 'Rental URI for Android (deep link to the specific station or vehicle)'
|
|
854
|
+
},
|
|
855
|
+
rentalUriIOS: {
|
|
856
|
+
type: 'string',
|
|
857
|
+
description: 'Rental URI for iOS (deep link to the specific station or vehicle)'
|
|
858
|
+
},
|
|
859
|
+
rentalUriWeb: {
|
|
860
|
+
type: 'string',
|
|
861
|
+
description: 'Rental URI for web (deep link to the specific station or vehicle)'
|
|
862
|
+
},
|
|
863
|
+
formFactor: {
|
|
864
|
+
$ref: '#/components/schemas/RentalFormFactor'
|
|
865
|
+
},
|
|
866
|
+
propulsionType: {
|
|
867
|
+
$ref: '#/components/schemas/RentalPropulsionType'
|
|
868
|
+
},
|
|
869
|
+
returnConstraint: {
|
|
870
|
+
$ref: '#/components/schemas/RentalReturnConstraint'
|
|
871
|
+
}
|
|
872
|
+
}
|
|
751
873
|
};
|
|
752
874
|
var LegSchema = {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
875
|
+
type: 'object',
|
|
876
|
+
required: [
|
|
877
|
+
'mode',
|
|
878
|
+
'startTime',
|
|
879
|
+
'endTime',
|
|
880
|
+
'scheduledStartTime',
|
|
881
|
+
'scheduledEndTime',
|
|
882
|
+
'realTime',
|
|
883
|
+
'scheduled',
|
|
884
|
+
'duration',
|
|
885
|
+
'from',
|
|
886
|
+
'to',
|
|
887
|
+
'legGeometry'
|
|
888
|
+
],
|
|
889
|
+
properties: {
|
|
890
|
+
mode: {
|
|
891
|
+
$ref: '#/components/schemas/Mode',
|
|
892
|
+
description: 'Transport mode for this leg'
|
|
893
|
+
},
|
|
894
|
+
from: {
|
|
895
|
+
$ref: '#/components/schemas/Place'
|
|
896
|
+
},
|
|
897
|
+
to: {
|
|
898
|
+
$ref: '#/components/schemas/Place'
|
|
899
|
+
},
|
|
900
|
+
duration: {
|
|
901
|
+
description: `Leg duration in seconds
|
|
768
902
|
|
|
769
903
|
If leg is footpath:
|
|
770
904
|
The footpath duration is derived from the default footpath
|
|
@@ -777,203 +911,208 @@ If leg is footpath:
|
|
|
777
911
|
\`additionalTransferTime = 0\` in case they are not explicitly
|
|
778
912
|
provided in the query.
|
|
779
913
|
`,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
914
|
+
type: 'integer'
|
|
915
|
+
},
|
|
916
|
+
startTime: {
|
|
917
|
+
type: 'string',
|
|
918
|
+
format: 'date-time',
|
|
919
|
+
description: 'leg departure time'
|
|
920
|
+
},
|
|
921
|
+
endTime: {
|
|
922
|
+
type: 'string',
|
|
923
|
+
format: 'date-time',
|
|
924
|
+
description: 'leg arrival time'
|
|
925
|
+
},
|
|
926
|
+
scheduledStartTime: {
|
|
927
|
+
type: 'string',
|
|
928
|
+
format: 'date-time',
|
|
929
|
+
description: 'scheduled leg departure time'
|
|
930
|
+
},
|
|
931
|
+
scheduledEndTime: {
|
|
932
|
+
type: 'string',
|
|
933
|
+
format: 'date-time',
|
|
934
|
+
description: 'scheduled leg arrival time'
|
|
935
|
+
},
|
|
936
|
+
realTime: {
|
|
937
|
+
description: 'Whether there is real-time data about this leg',
|
|
938
|
+
type: 'boolean'
|
|
939
|
+
},
|
|
940
|
+
scheduled: {
|
|
941
|
+
description: `Whether this leg was originally scheduled to run or is an additional service.
|
|
808
942
|
Scheduled times will equal realtime times in this case.
|
|
809
943
|
`,
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
944
|
+
type: 'boolean'
|
|
945
|
+
},
|
|
946
|
+
distance: {
|
|
947
|
+
description:
|
|
948
|
+
'For non-transit legs the distance traveled while traversing this leg in meters.',
|
|
949
|
+
type: 'number'
|
|
950
|
+
},
|
|
951
|
+
interlineWithPreviousLeg: {
|
|
952
|
+
description:
|
|
953
|
+
'For transit legs, if the rider should stay on the vehicle as it changes route names.',
|
|
954
|
+
type: 'boolean'
|
|
955
|
+
},
|
|
956
|
+
headsign: {
|
|
957
|
+
description: `For transit legs, the headsign of the bus or train being used.
|
|
822
958
|
For non-transit legs, null
|
|
823
959
|
`,
|
|
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
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
960
|
+
type: 'string'
|
|
961
|
+
},
|
|
962
|
+
routeColor: {
|
|
963
|
+
type: 'string'
|
|
964
|
+
},
|
|
965
|
+
routeTextColor: {
|
|
966
|
+
type: 'string'
|
|
967
|
+
},
|
|
968
|
+
routeType: {
|
|
969
|
+
type: 'string'
|
|
970
|
+
},
|
|
971
|
+
agencyName: {
|
|
972
|
+
type: 'string'
|
|
973
|
+
},
|
|
974
|
+
agencyUrl: {
|
|
975
|
+
type: 'string'
|
|
976
|
+
},
|
|
977
|
+
agencyId: {
|
|
978
|
+
type: 'string'
|
|
979
|
+
},
|
|
980
|
+
tripId: {
|
|
981
|
+
type: 'string'
|
|
982
|
+
},
|
|
983
|
+
routeShortName: {
|
|
984
|
+
type: 'string'
|
|
985
|
+
},
|
|
986
|
+
cancelled: {
|
|
987
|
+
description: 'Whether this trip is cancelled',
|
|
988
|
+
type: 'boolean'
|
|
989
|
+
},
|
|
990
|
+
source: {
|
|
991
|
+
description: 'Filename and line number where this trip is from',
|
|
992
|
+
type: 'string'
|
|
993
|
+
},
|
|
994
|
+
intermediateStops: {
|
|
995
|
+
description: `For transit legs, intermediate stops between the Place where the leg originates
|
|
860
996
|
and the Place where the leg ends. For non-transit legs, null.
|
|
861
997
|
`,
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
998
|
+
type: 'array',
|
|
999
|
+
items: {
|
|
1000
|
+
$ref: '#/components/schemas/Place'
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
legGeometry: {
|
|
1004
|
+
$ref: '#/components/schemas/EncodedPolyline'
|
|
1005
|
+
},
|
|
1006
|
+
steps: {
|
|
1007
|
+
description: `A series of turn by turn instructions
|
|
872
1008
|
used for walking, biking and driving.
|
|
873
1009
|
`,
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
1010
|
+
type: 'array',
|
|
1011
|
+
items: {
|
|
1012
|
+
$ref: '#/components/schemas/StepInstruction'
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
rental: {
|
|
1016
|
+
$ref: '#/components/schemas/Rental'
|
|
1017
|
+
},
|
|
1018
|
+
fareTransferIndex: {
|
|
1019
|
+
type: 'integer',
|
|
1020
|
+
description: `Index into \`Itinerary.fareTransfers\` array
|
|
885
1021
|
to identify which fare transfer this leg belongs to
|
|
886
1022
|
`
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1023
|
+
},
|
|
1024
|
+
effectiveFareLegIndex: {
|
|
1025
|
+
type: 'integer',
|
|
1026
|
+
description: `Index into the \`Itinerary.fareTransfers[fareTransferIndex].effectiveFareLegProducts\` array
|
|
891
1027
|
to identify which effective fare leg this itinerary leg belongs to
|
|
892
1028
|
`
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1029
|
+
},
|
|
1030
|
+
alerts: {
|
|
1031
|
+
description: 'Alerts for this stop.',
|
|
1032
|
+
type: 'array',
|
|
1033
|
+
items: {
|
|
1034
|
+
$ref: '#/components/schemas/Alert'
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
902
1038
|
};
|
|
903
1039
|
var RiderCategorySchema = {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
1040
|
+
type: 'object',
|
|
1041
|
+
required: ['riderCategoryName', 'isDefaultFareCategory'],
|
|
1042
|
+
properties: {
|
|
1043
|
+
riderCategoryName: {
|
|
1044
|
+
description: 'Rider category name as displayed to the rider.',
|
|
1045
|
+
type: 'string'
|
|
1046
|
+
},
|
|
1047
|
+
isDefaultFareCategory: {
|
|
1048
|
+
description:
|
|
1049
|
+
'Specifies if this category should be considered the default (i.e. the main category displayed to riders).',
|
|
1050
|
+
type: 'boolean'
|
|
1051
|
+
},
|
|
1052
|
+
eligibilityUrl: {
|
|
1053
|
+
description:
|
|
1054
|
+
'URL to a web page providing detailed information about the rider category and/or its eligibility criteria.',
|
|
1055
|
+
type: 'string'
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
920
1058
|
};
|
|
921
1059
|
var FareMediaTypeSchema = {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1060
|
+
type: 'string',
|
|
1061
|
+
enum: ['NONE', 'PAPER_TICKET', 'TRANSIT_CARD', 'CONTACTLESS_EMV', 'MOBILE_APP'],
|
|
1062
|
+
enumDescriptions: {
|
|
1063
|
+
NONE: 'No fare media involved (e.g., cash payment)',
|
|
1064
|
+
PAPER_TICKET: 'Physical paper ticket',
|
|
1065
|
+
TRANSIT_CARD: 'Physical transit card with stored value',
|
|
1066
|
+
CONTACTLESS_EMV: 'cEMV (contactless payment)',
|
|
1067
|
+
MOBILE_APP: 'Mobile app with virtual transit cards/passes'
|
|
1068
|
+
}
|
|
931
1069
|
};
|
|
932
1070
|
var FareMediaSchema = {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1071
|
+
type: 'object',
|
|
1072
|
+
required: ['fareMediaType'],
|
|
1073
|
+
properties: {
|
|
1074
|
+
fareMediaName: {
|
|
1075
|
+
description: 'Name of the fare media. Required for transit cards and mobile apps.',
|
|
1076
|
+
type: 'string'
|
|
1077
|
+
},
|
|
1078
|
+
fareMediaType: {
|
|
1079
|
+
description: 'The type of fare media.',
|
|
1080
|
+
$ref: '#/components/schemas/FareMediaType'
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
945
1083
|
};
|
|
946
1084
|
var FareProductSchema = {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1085
|
+
type: 'object',
|
|
1086
|
+
required: ['name', 'amount', 'currency'],
|
|
1087
|
+
properties: {
|
|
1088
|
+
name: {
|
|
1089
|
+
description: 'The name of the fare product as displayed to riders.',
|
|
1090
|
+
type: 'string'
|
|
1091
|
+
},
|
|
1092
|
+
amount: {
|
|
1093
|
+
description:
|
|
1094
|
+
'The cost of the fare product. May be negative to represent transfer discounts. May be zero to represent a fare product that is free.',
|
|
1095
|
+
type: 'number'
|
|
1096
|
+
},
|
|
1097
|
+
currency: {
|
|
1098
|
+
description: 'ISO 4217 currency code. The currency of the cost of the fare product.',
|
|
1099
|
+
type: 'string'
|
|
1100
|
+
},
|
|
1101
|
+
riderCategory: {
|
|
1102
|
+
$ref: '#/components/schemas/RiderCategory'
|
|
1103
|
+
},
|
|
1104
|
+
media: {
|
|
1105
|
+
$ref: '#/components/schemas/FareMedia'
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
969
1108
|
};
|
|
970
1109
|
var FareTransferRuleSchema = {
|
|
971
|
-
|
|
972
|
-
|
|
1110
|
+
type: 'string',
|
|
1111
|
+
enum: ['A_AB', 'A_AB_B', 'AB']
|
|
973
1112
|
};
|
|
974
1113
|
var FareTransferSchema = {
|
|
975
|
-
|
|
976
|
-
|
|
1114
|
+
type: 'object',
|
|
1115
|
+
description: `The concept is derived from: https://gtfs.org/documentation/schedule/reference/#fare_transfer_rulestxt
|
|
977
1116
|
|
|
978
1117
|
Terminology:
|
|
979
1118
|
- **Leg**: An itinerary leg as described by the \`Leg\` type of this API description.
|
|
@@ -990,165 +1129,165 @@ The fare transfer rule is used to derive the final set of products of the itiner
|
|
|
990
1129
|
|
|
991
1130
|
An itinerary \`Leg\` references the index of the fare transfer and the index of the effective fare leg in this transfer it belongs to.
|
|
992
1131
|
`,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1132
|
+
required: ['effectiveFareLegProducts'],
|
|
1133
|
+
properties: {
|
|
1134
|
+
rule: {
|
|
1135
|
+
$ref: '#/components/schemas/FareTransferRule'
|
|
1136
|
+
},
|
|
1137
|
+
transferProducts: {
|
|
1138
|
+
type: 'array',
|
|
1139
|
+
items: {
|
|
1140
|
+
$ref: '#/components/schemas/FareProduct'
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
effectiveFareLegProducts: {
|
|
1144
|
+
description: `Lists all valid fare products for the effective fare legs.
|
|
1006
1145
|
This is an \`array<array<FareProduct>>\` where the inner array
|
|
1007
1146
|
lists all possible fare products that would cover this effective fare leg.
|
|
1008
1147
|
Each "effective fare leg" can have multiple options for adult/child/weekly/monthly/day/one-way tickets etc.
|
|
1009
1148
|
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\`)
|
|
1010
1149
|
and the inner array as OR (you can choose which ticket to buy)
|
|
1011
1150
|
`,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1151
|
+
type: 'array',
|
|
1152
|
+
items: {
|
|
1153
|
+
type: 'array',
|
|
1154
|
+
items: {
|
|
1155
|
+
type: 'array',
|
|
1156
|
+
items: {
|
|
1157
|
+
$ref: '#/components/schemas/FareProduct'
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1024
1163
|
};
|
|
1025
1164
|
var ItinerarySchema = {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1165
|
+
type: 'object',
|
|
1166
|
+
required: ['duration', 'startTime', 'endTime', 'transfers', 'legs'],
|
|
1167
|
+
properties: {
|
|
1168
|
+
duration: {
|
|
1169
|
+
description: 'journey duration in seconds',
|
|
1170
|
+
type: 'integer'
|
|
1171
|
+
},
|
|
1172
|
+
startTime: {
|
|
1173
|
+
type: 'string',
|
|
1174
|
+
format: 'date-time',
|
|
1175
|
+
description: 'journey departure time'
|
|
1176
|
+
},
|
|
1177
|
+
endTime: {
|
|
1178
|
+
type: 'string',
|
|
1179
|
+
format: 'date-time',
|
|
1180
|
+
description: 'journey arrival time'
|
|
1181
|
+
},
|
|
1182
|
+
transfers: {
|
|
1183
|
+
type: 'integer',
|
|
1184
|
+
description: 'The number of transfers this trip has.'
|
|
1185
|
+
},
|
|
1186
|
+
legs: {
|
|
1187
|
+
description: 'Journey legs',
|
|
1188
|
+
type: 'array',
|
|
1189
|
+
items: {
|
|
1190
|
+
$ref: '#/components/schemas/Leg'
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
fareTransfers: {
|
|
1194
|
+
description: 'Fare information',
|
|
1195
|
+
type: 'array',
|
|
1196
|
+
items: {
|
|
1197
|
+
$ref: '#/components/schemas/FareTransfer'
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1062
1201
|
};
|
|
1063
1202
|
var TransferSchema = {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1203
|
+
description: 'transfer from one location to another',
|
|
1204
|
+
type: 'object',
|
|
1205
|
+
required: ['to'],
|
|
1206
|
+
properties: {
|
|
1207
|
+
to: {
|
|
1208
|
+
$ref: '#/components/schemas/Place'
|
|
1209
|
+
},
|
|
1210
|
+
default: {
|
|
1211
|
+
type: 'number',
|
|
1212
|
+
description: `optional; missing if the GTFS did not contain a transfer
|
|
1074
1213
|
transfer duration in minutes according to GTFS (+heuristics)
|
|
1075
1214
|
`
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1215
|
+
},
|
|
1216
|
+
foot: {
|
|
1217
|
+
type: 'number',
|
|
1218
|
+
description: `optional; missing if no path was found (timetable / osr)
|
|
1080
1219
|
transfer duration in minutes for the foot profile
|
|
1081
1220
|
`
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1221
|
+
},
|
|
1222
|
+
footRouted: {
|
|
1223
|
+
type: 'number',
|
|
1224
|
+
description: `optional; missing if no path was found with foot routing
|
|
1086
1225
|
transfer duration in minutes for the foot profile
|
|
1087
1226
|
`
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1227
|
+
},
|
|
1228
|
+
wheelchair: {
|
|
1229
|
+
type: 'number',
|
|
1230
|
+
description: `optional; missing if no path was found with the wheelchair profile
|
|
1092
1231
|
transfer duration in minutes for the wheelchair profile
|
|
1093
1232
|
`
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1233
|
+
},
|
|
1234
|
+
wheelchairRouted: {
|
|
1235
|
+
type: 'number',
|
|
1236
|
+
description: `optional; missing if no path was found with the wheelchair profile
|
|
1098
1237
|
transfer duration in minutes for the wheelchair profile
|
|
1099
1238
|
`
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1239
|
+
},
|
|
1240
|
+
wheelchairUsesElevator: {
|
|
1241
|
+
type: 'boolean',
|
|
1242
|
+
description: `optional; missing if no path was found with the wheelchair profile
|
|
1104
1243
|
true if the wheelchair path uses an elevator
|
|
1105
1244
|
`
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1245
|
+
},
|
|
1246
|
+
car: {
|
|
1247
|
+
type: 'number',
|
|
1248
|
+
description: `optional; missing if no path was found with car routing
|
|
1110
1249
|
transfer duration in minutes for the car profile
|
|
1111
1250
|
`
|
|
1112
|
-
|
|
1113
|
-
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1114
1253
|
};
|
|
1115
1254
|
|
|
1116
1255
|
export {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1256
|
+
AlertCauseSchema,
|
|
1257
|
+
AlertEffectSchema,
|
|
1258
|
+
AlertSeverityLevelSchema,
|
|
1259
|
+
TimeRangeSchema,
|
|
1260
|
+
AlertSchema,
|
|
1261
|
+
DurationSchema,
|
|
1262
|
+
AreaSchema,
|
|
1263
|
+
TokenSchema,
|
|
1264
|
+
LocationTypeSchema,
|
|
1265
|
+
MatchSchema,
|
|
1266
|
+
ElevationCostsSchema,
|
|
1267
|
+
PedestrianProfileSchema,
|
|
1268
|
+
ModeSchema,
|
|
1269
|
+
VertexTypeSchema,
|
|
1270
|
+
PickupDropoffTypeSchema,
|
|
1271
|
+
PlaceSchema,
|
|
1272
|
+
ReachablePlaceSchema,
|
|
1273
|
+
ReachableSchema,
|
|
1274
|
+
StopTimeSchema,
|
|
1275
|
+
TripInfoSchema,
|
|
1276
|
+
TripSegmentSchema,
|
|
1277
|
+
DirectionSchema,
|
|
1278
|
+
EncodedPolylineSchema,
|
|
1279
|
+
StepInstructionSchema,
|
|
1280
|
+
RentalFormFactorSchema,
|
|
1281
|
+
RentalPropulsionTypeSchema,
|
|
1282
|
+
RentalReturnConstraintSchema,
|
|
1283
|
+
RentalSchema,
|
|
1284
|
+
LegSchema,
|
|
1285
|
+
RiderCategorySchema,
|
|
1286
|
+
FareMediaTypeSchema,
|
|
1287
|
+
FareMediaSchema,
|
|
1288
|
+
FareProductSchema,
|
|
1289
|
+
FareTransferRuleSchema,
|
|
1290
|
+
FareTransferSchema,
|
|
1291
|
+
ItinerarySchema,
|
|
1292
|
+
TransferSchema
|
|
1154
1293
|
};
|