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