@aws-sdk/client-geo-routes 3.893.0 → 3.895.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.
@@ -1,1531 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_SnapToRoadsCommand = exports.de_OptimizeWaypointsCommand = exports.de_CalculateRoutesCommand = exports.de_CalculateRouteMatrixCommand = exports.de_CalculateIsolinesCommand = exports.se_SnapToRoadsCommand = exports.se_OptimizeWaypointsCommand = exports.se_CalculateRoutesCommand = exports.se_CalculateRouteMatrixCommand = exports.se_CalculateIsolinesCommand = void 0;
4
- const core_1 = require("@aws-sdk/core");
5
- const core_2 = require("@smithy/core");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const GeoRoutesServiceException_1 = require("../models/GeoRoutesServiceException");
8
- const models_0_1 = require("../models/models_0");
9
- const se_CalculateIsolinesCommand = async (input, context) => {
10
- const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {
12
- "content-type": "application/json",
13
- };
14
- b.bp("/isolines");
15
- const query = (0, smithy_client_1.map)({
16
- [_k]: [, input[_K]],
17
- });
18
- let body;
19
- body = JSON.stringify((0, smithy_client_1.take)(input, {
20
- Allow: (_) => (0, smithy_client_1._json)(_),
21
- ArrivalTime: [],
22
- Avoid: (_) => se_IsolineAvoidanceOptions(_, context),
23
- DepartNow: [],
24
- DepartureTime: [],
25
- Destination: (_) => se_Position(_, context),
26
- DestinationOptions: (_) => se_IsolineDestinationOptions(_, context),
27
- IsolineGeometryFormat: [],
28
- IsolineGranularity: (_) => (0, smithy_client_1._json)(_),
29
- OptimizeIsolineFor: [],
30
- OptimizeRoutingFor: [],
31
- Origin: (_) => se_Position(_, context),
32
- OriginOptions: (_) => se_IsolineOriginOptions(_, context),
33
- Thresholds: (_) => (0, smithy_client_1._json)(_),
34
- Traffic: (_) => (0, smithy_client_1._json)(_),
35
- TravelMode: [],
36
- TravelModeOptions: (_) => se_IsolineTravelModeOptions(_, context),
37
- }));
38
- b.m("POST").h(headers).q(query).b(body);
39
- return b.build();
40
- };
41
- exports.se_CalculateIsolinesCommand = se_CalculateIsolinesCommand;
42
- const se_CalculateRouteMatrixCommand = async (input, context) => {
43
- const b = (0, core_2.requestBuilder)(input, context);
44
- const headers = {
45
- "content-type": "application/json",
46
- };
47
- b.bp("/route-matrix");
48
- const query = (0, smithy_client_1.map)({
49
- [_k]: [, input[_K]],
50
- });
51
- let body;
52
- body = JSON.stringify((0, smithy_client_1.take)(input, {
53
- Allow: (_) => (0, smithy_client_1._json)(_),
54
- Avoid: (_) => se_RouteMatrixAvoidanceOptions(_, context),
55
- DepartNow: [],
56
- DepartureTime: [],
57
- Destinations: (_) => se_RouteMatrixDestinationList(_, context),
58
- Exclude: (_) => (0, smithy_client_1._json)(_),
59
- OptimizeRoutingFor: [],
60
- Origins: (_) => se_RouteMatrixOriginList(_, context),
61
- RoutingBoundary: (_) => se_RouteMatrixBoundary(_, context),
62
- Traffic: (_) => (0, smithy_client_1._json)(_),
63
- TravelMode: [],
64
- TravelModeOptions: (_) => se_RouteMatrixTravelModeOptions(_, context),
65
- }));
66
- b.m("POST").h(headers).q(query).b(body);
67
- return b.build();
68
- };
69
- exports.se_CalculateRouteMatrixCommand = se_CalculateRouteMatrixCommand;
70
- const se_CalculateRoutesCommand = async (input, context) => {
71
- const b = (0, core_2.requestBuilder)(input, context);
72
- const headers = {
73
- "content-type": "application/json",
74
- };
75
- b.bp("/routes");
76
- const query = (0, smithy_client_1.map)({
77
- [_k]: [, input[_K]],
78
- });
79
- let body;
80
- body = JSON.stringify((0, smithy_client_1.take)(input, {
81
- Allow: (_) => (0, smithy_client_1._json)(_),
82
- ArrivalTime: [],
83
- Avoid: (_) => se_RouteAvoidanceOptions(_, context),
84
- DepartNow: [],
85
- DepartureTime: [],
86
- Destination: (_) => se_Position(_, context),
87
- DestinationOptions: (_) => se_RouteDestinationOptions(_, context),
88
- Driver: (_) => (0, smithy_client_1._json)(_),
89
- Exclude: (_) => (0, smithy_client_1._json)(_),
90
- InstructionsMeasurementSystem: [],
91
- Languages: (_) => (0, smithy_client_1._json)(_),
92
- LegAdditionalFeatures: (_) => (0, smithy_client_1._json)(_),
93
- LegGeometryFormat: [],
94
- MaxAlternatives: [],
95
- OptimizeRoutingFor: [],
96
- Origin: (_) => se_Position(_, context),
97
- OriginOptions: (_) => se_RouteOriginOptions(_, context),
98
- SpanAdditionalFeatures: (_) => (0, smithy_client_1._json)(_),
99
- Tolls: (_) => (0, smithy_client_1._json)(_),
100
- Traffic: (_) => (0, smithy_client_1._json)(_),
101
- TravelMode: [],
102
- TravelModeOptions: (_) => se_RouteTravelModeOptions(_, context),
103
- TravelStepType: [],
104
- Waypoints: (_) => se_RouteWaypointList(_, context),
105
- }));
106
- b.m("POST").h(headers).q(query).b(body);
107
- return b.build();
108
- };
109
- exports.se_CalculateRoutesCommand = se_CalculateRoutesCommand;
110
- const se_OptimizeWaypointsCommand = async (input, context) => {
111
- const b = (0, core_2.requestBuilder)(input, context);
112
- const headers = {
113
- "content-type": "application/json",
114
- };
115
- b.bp("/optimize-waypoints");
116
- const query = (0, smithy_client_1.map)({
117
- [_k]: [, input[_K]],
118
- });
119
- let body;
120
- body = JSON.stringify((0, smithy_client_1.take)(input, {
121
- Avoid: (_) => se_WaypointOptimizationAvoidanceOptions(_, context),
122
- Clustering: (_) => (0, smithy_client_1._json)(_),
123
- DepartureTime: [],
124
- Destination: (_) => se_Position(_, context),
125
- DestinationOptions: (_) => se_WaypointOptimizationDestinationOptions(_, context),
126
- Driver: (_) => (0, smithy_client_1._json)(_),
127
- Exclude: (_) => (0, smithy_client_1._json)(_),
128
- OptimizeSequencingFor: [],
129
- Origin: (_) => se_Position(_, context),
130
- OriginOptions: (_) => (0, smithy_client_1._json)(_),
131
- Traffic: (_) => (0, smithy_client_1._json)(_),
132
- TravelMode: [],
133
- TravelModeOptions: (_) => se_WaypointOptimizationTravelModeOptions(_, context),
134
- Waypoints: (_) => se_WaypointOptimizationWaypointList(_, context),
135
- }));
136
- b.m("POST").h(headers).q(query).b(body);
137
- return b.build();
138
- };
139
- exports.se_OptimizeWaypointsCommand = se_OptimizeWaypointsCommand;
140
- const se_SnapToRoadsCommand = async (input, context) => {
141
- const b = (0, core_2.requestBuilder)(input, context);
142
- const headers = {
143
- "content-type": "application/json",
144
- };
145
- b.bp("/snap-to-roads");
146
- const query = (0, smithy_client_1.map)({
147
- [_k]: [, input[_K]],
148
- });
149
- let body;
150
- body = JSON.stringify((0, smithy_client_1.take)(input, {
151
- SnapRadius: [],
152
- SnappedGeometryFormat: [],
153
- TracePoints: (_) => se_RoadSnapTracePointList(_, context),
154
- TravelMode: [],
155
- TravelModeOptions: (_) => (0, smithy_client_1._json)(_),
156
- }));
157
- b.m("POST").h(headers).q(query).b(body);
158
- return b.build();
159
- };
160
- exports.se_SnapToRoadsCommand = se_SnapToRoadsCommand;
161
- const de_CalculateIsolinesCommand = async (output, context) => {
162
- if (output.statusCode !== 200 && output.statusCode >= 300) {
163
- return de_CommandError(output, context);
164
- }
165
- const contents = (0, smithy_client_1.map)({
166
- $metadata: deserializeMetadata(output),
167
- [_PB]: [, output.headers[_xagpb]],
168
- });
169
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
170
- const doc = (0, smithy_client_1.take)(data, {
171
- ArrivalTime: smithy_client_1.expectString,
172
- DepartureTime: smithy_client_1.expectString,
173
- IsolineGeometryFormat: smithy_client_1.expectString,
174
- Isolines: (_) => de_IsolineList(_, context),
175
- SnappedDestination: (_) => de_Position(_, context),
176
- SnappedOrigin: (_) => de_Position(_, context),
177
- });
178
- Object.assign(contents, doc);
179
- return contents;
180
- };
181
- exports.de_CalculateIsolinesCommand = de_CalculateIsolinesCommand;
182
- const de_CalculateRouteMatrixCommand = async (output, context) => {
183
- if (output.statusCode !== 200 && output.statusCode >= 300) {
184
- return de_CommandError(output, context);
185
- }
186
- const contents = (0, smithy_client_1.map)({
187
- $metadata: deserializeMetadata(output),
188
- [_PB]: [, output.headers[_xagpb]],
189
- });
190
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
191
- const doc = (0, smithy_client_1.take)(data, {
192
- ErrorCount: smithy_client_1.expectInt32,
193
- RouteMatrix: smithy_client_1._json,
194
- RoutingBoundary: (_) => de_RouteMatrixBoundary(_, context),
195
- });
196
- Object.assign(contents, doc);
197
- return contents;
198
- };
199
- exports.de_CalculateRouteMatrixCommand = de_CalculateRouteMatrixCommand;
200
- const de_CalculateRoutesCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_CommandError(output, context);
203
- }
204
- const contents = (0, smithy_client_1.map)({
205
- $metadata: deserializeMetadata(output),
206
- [_PB]: [, output.headers[_xagpb]],
207
- });
208
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
209
- const doc = (0, smithy_client_1.take)(data, {
210
- LegGeometryFormat: smithy_client_1.expectString,
211
- Notices: smithy_client_1._json,
212
- Routes: (_) => de_RouteList(_, context),
213
- });
214
- Object.assign(contents, doc);
215
- return contents;
216
- };
217
- exports.de_CalculateRoutesCommand = de_CalculateRoutesCommand;
218
- const de_OptimizeWaypointsCommand = async (output, context) => {
219
- if (output.statusCode !== 200 && output.statusCode >= 300) {
220
- return de_CommandError(output, context);
221
- }
222
- const contents = (0, smithy_client_1.map)({
223
- $metadata: deserializeMetadata(output),
224
- [_PB]: [, output.headers[_xagpb]],
225
- });
226
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
227
- const doc = (0, smithy_client_1.take)(data, {
228
- Connections: smithy_client_1._json,
229
- Distance: smithy_client_1.expectLong,
230
- Duration: smithy_client_1.expectLong,
231
- ImpedingWaypoints: (_) => de_WaypointOptimizationImpedingWaypointList(_, context),
232
- OptimizedWaypoints: (_) => de_WaypointOptimizationOptimizedWaypointList(_, context),
233
- TimeBreakdown: smithy_client_1._json,
234
- });
235
- Object.assign(contents, doc);
236
- return contents;
237
- };
238
- exports.de_OptimizeWaypointsCommand = de_OptimizeWaypointsCommand;
239
- const de_SnapToRoadsCommand = async (output, context) => {
240
- if (output.statusCode !== 200 && output.statusCode >= 300) {
241
- return de_CommandError(output, context);
242
- }
243
- const contents = (0, smithy_client_1.map)({
244
- $metadata: deserializeMetadata(output),
245
- [_PB]: [, output.headers[_xagpb]],
246
- });
247
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
248
- const doc = (0, smithy_client_1.take)(data, {
249
- Notices: smithy_client_1._json,
250
- SnappedGeometry: (_) => de_RoadSnapSnappedGeometry(_, context),
251
- SnappedGeometryFormat: smithy_client_1.expectString,
252
- SnappedTracePoints: (_) => de_RoadSnapSnappedTracePointList(_, context),
253
- });
254
- Object.assign(contents, doc);
255
- return contents;
256
- };
257
- exports.de_SnapToRoadsCommand = de_SnapToRoadsCommand;
258
- const de_CommandError = async (output, context) => {
259
- const parsedOutput = {
260
- ...output,
261
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
262
- };
263
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
264
- switch (errorCode) {
265
- case "AccessDeniedException":
266
- case "com.amazonaws.georoutes#AccessDeniedException":
267
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
268
- case "InternalServerException":
269
- case "com.amazonaws.georoutes#InternalServerException":
270
- throw await de_InternalServerExceptionRes(parsedOutput, context);
271
- case "ThrottlingException":
272
- case "com.amazonaws.georoutes#ThrottlingException":
273
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
274
- case "ValidationException":
275
- case "com.amazonaws.georoutes#ValidationException":
276
- throw await de_ValidationExceptionRes(parsedOutput, context);
277
- default:
278
- const parsedBody = parsedOutput.body;
279
- return throwDefaultError({
280
- output,
281
- parsedBody,
282
- errorCode,
283
- });
284
- }
285
- };
286
- const throwDefaultError = (0, smithy_client_1.withBaseException)(GeoRoutesServiceException_1.GeoRoutesServiceException);
287
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
288
- const contents = (0, smithy_client_1.map)({});
289
- const data = parsedOutput.body;
290
- const doc = (0, smithy_client_1.take)(data, {
291
- Message: [, smithy_client_1.expectString, `message`],
292
- });
293
- Object.assign(contents, doc);
294
- const exception = new models_0_1.AccessDeniedException({
295
- $metadata: deserializeMetadata(parsedOutput),
296
- ...contents,
297
- });
298
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
299
- };
300
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
301
- const contents = (0, smithy_client_1.map)({});
302
- const data = parsedOutput.body;
303
- const doc = (0, smithy_client_1.take)(data, {
304
- Message: [, smithy_client_1.expectString, `message`],
305
- });
306
- Object.assign(contents, doc);
307
- const exception = new models_0_1.InternalServerException({
308
- $metadata: deserializeMetadata(parsedOutput),
309
- ...contents,
310
- });
311
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
312
- };
313
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
314
- const contents = (0, smithy_client_1.map)({});
315
- const data = parsedOutput.body;
316
- const doc = (0, smithy_client_1.take)(data, {
317
- Message: [, smithy_client_1.expectString, `message`],
318
- });
319
- Object.assign(contents, doc);
320
- const exception = new models_0_1.ThrottlingException({
321
- $metadata: deserializeMetadata(parsedOutput),
322
- ...contents,
323
- });
324
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
325
- };
326
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
327
- const contents = (0, smithy_client_1.map)({});
328
- const data = parsedOutput.body;
329
- const doc = (0, smithy_client_1.take)(data, {
330
- FieldList: [, (_) => de_ValidationExceptionFieldList(_, context), `fieldList`],
331
- Message: [, smithy_client_1.expectString, `message`],
332
- Reason: [, smithy_client_1.expectString, `reason`],
333
- });
334
- Object.assign(contents, doc);
335
- const exception = new models_0_1.ValidationException({
336
- $metadata: deserializeMetadata(parsedOutput),
337
- ...contents,
338
- });
339
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
340
- };
341
- const se_BoundingBox = (input, context) => {
342
- return input
343
- .filter((e) => e != null)
344
- .map((entry) => {
345
- return (0, smithy_client_1.serializeFloat)(entry);
346
- });
347
- };
348
- const se_Circle = (input, context) => {
349
- return (0, smithy_client_1.take)(input, {
350
- Center: (_) => se_Position(_, context),
351
- Radius: smithy_client_1.serializeFloat,
352
- });
353
- };
354
- const se_Corridor = (input, context) => {
355
- return (0, smithy_client_1.take)(input, {
356
- LineString: (_) => se_LineString(_, context),
357
- Radius: [],
358
- });
359
- };
360
- const se_IsolineAvoidanceArea = (input, context) => {
361
- return (0, smithy_client_1.take)(input, {
362
- Except: (_) => se_IsolineAvoidanceAreaGeometryList(_, context),
363
- Geometry: (_) => se_IsolineAvoidanceAreaGeometry(_, context),
364
- });
365
- };
366
- const se_IsolineAvoidanceAreaGeometry = (input, context) => {
367
- return (0, smithy_client_1.take)(input, {
368
- BoundingBox: (_) => se_BoundingBox(_, context),
369
- Corridor: (_) => se_Corridor(_, context),
370
- Polygon: (_) => se_LinearRings(_, context),
371
- PolylineCorridor: smithy_client_1._json,
372
- PolylinePolygon: smithy_client_1._json,
373
- });
374
- };
375
- const se_IsolineAvoidanceAreaGeometryList = (input, context) => {
376
- return input
377
- .filter((e) => e != null)
378
- .map((entry) => {
379
- return se_IsolineAvoidanceAreaGeometry(entry, context);
380
- });
381
- };
382
- const se_IsolineAvoidanceAreaList = (input, context) => {
383
- return input
384
- .filter((e) => e != null)
385
- .map((entry) => {
386
- return se_IsolineAvoidanceArea(entry, context);
387
- });
388
- };
389
- const se_IsolineAvoidanceOptions = (input, context) => {
390
- return (0, smithy_client_1.take)(input, {
391
- Areas: (_) => se_IsolineAvoidanceAreaList(_, context),
392
- CarShuttleTrains: [],
393
- ControlledAccessHighways: [],
394
- DirtRoads: [],
395
- Ferries: [],
396
- SeasonalClosure: [],
397
- TollRoads: [],
398
- TollTransponders: [],
399
- TruckRoadTypes: smithy_client_1._json,
400
- Tunnels: [],
401
- UTurns: [],
402
- ZoneCategories: smithy_client_1._json,
403
- });
404
- };
405
- const se_IsolineCarOptions = (input, context) => {
406
- return (0, smithy_client_1.take)(input, {
407
- EngineType: [],
408
- LicensePlate: smithy_client_1._json,
409
- MaxSpeed: smithy_client_1.serializeFloat,
410
- Occupancy: [],
411
- });
412
- };
413
- const se_IsolineDestinationOptions = (input, context) => {
414
- return (0, smithy_client_1.take)(input, {
415
- AvoidActionsForDistance: [],
416
- Heading: smithy_client_1.serializeFloat,
417
- Matching: smithy_client_1._json,
418
- SideOfStreet: (_) => se_IsolineSideOfStreetOptions(_, context),
419
- });
420
- };
421
- const se_IsolineOriginOptions = (input, context) => {
422
- return (0, smithy_client_1.take)(input, {
423
- AvoidActionsForDistance: [],
424
- Heading: smithy_client_1.serializeFloat,
425
- Matching: smithy_client_1._json,
426
- SideOfStreet: (_) => se_IsolineSideOfStreetOptions(_, context),
427
- });
428
- };
429
- const se_IsolineScooterOptions = (input, context) => {
430
- return (0, smithy_client_1.take)(input, {
431
- EngineType: [],
432
- LicensePlate: smithy_client_1._json,
433
- MaxSpeed: smithy_client_1.serializeFloat,
434
- Occupancy: [],
435
- });
436
- };
437
- const se_IsolineSideOfStreetOptions = (input, context) => {
438
- return (0, smithy_client_1.take)(input, {
439
- Position: (_) => se_Position(_, context),
440
- UseWith: [],
441
- });
442
- };
443
- const se_IsolineTravelModeOptions = (input, context) => {
444
- return (0, smithy_client_1.take)(input, {
445
- Car: (_) => se_IsolineCarOptions(_, context),
446
- Scooter: (_) => se_IsolineScooterOptions(_, context),
447
- Truck: (_) => se_IsolineTruckOptions(_, context),
448
- });
449
- };
450
- const se_IsolineTruckOptions = (input, context) => {
451
- return (0, smithy_client_1.take)(input, {
452
- AxleCount: [],
453
- EngineType: [],
454
- GrossWeight: [],
455
- HazardousCargos: smithy_client_1._json,
456
- Height: [],
457
- HeightAboveFirstAxle: [],
458
- KpraLength: [],
459
- Length: [],
460
- LicensePlate: smithy_client_1._json,
461
- MaxSpeed: smithy_client_1.serializeFloat,
462
- Occupancy: [],
463
- PayloadCapacity: [],
464
- TireCount: [],
465
- Trailer: smithy_client_1._json,
466
- TruckType: [],
467
- TunnelRestrictionCode: [],
468
- WeightPerAxle: [],
469
- WeightPerAxleGroup: smithy_client_1._json,
470
- Width: [],
471
- });
472
- };
473
- const se_LinearRing = (input, context) => {
474
- return input
475
- .filter((e) => e != null)
476
- .map((entry) => {
477
- return se_Position(entry, context);
478
- });
479
- };
480
- const se_LinearRings = (input, context) => {
481
- return input
482
- .filter((e) => e != null)
483
- .map((entry) => {
484
- return se_LinearRing(entry, context);
485
- });
486
- };
487
- const se_LineString = (input, context) => {
488
- return input
489
- .filter((e) => e != null)
490
- .map((entry) => {
491
- return se_Position(entry, context);
492
- });
493
- };
494
- const se_Position = (input, context) => {
495
- return input
496
- .filter((e) => e != null)
497
- .map((entry) => {
498
- return (0, smithy_client_1.serializeFloat)(entry);
499
- });
500
- };
501
- const se_RoadSnapTracePoint = (input, context) => {
502
- return (0, smithy_client_1.take)(input, {
503
- Heading: smithy_client_1.serializeFloat,
504
- Position: (_) => se_Position(_, context),
505
- Speed: smithy_client_1.serializeFloat,
506
- Timestamp: [],
507
- });
508
- };
509
- const se_RoadSnapTracePointList = (input, context) => {
510
- return input
511
- .filter((e) => e != null)
512
- .map((entry) => {
513
- return se_RoadSnapTracePoint(entry, context);
514
- });
515
- };
516
- const se_RouteAvoidanceArea = (input, context) => {
517
- return (0, smithy_client_1.take)(input, {
518
- Except: (_) => se_RouteAvoidanceAreaGeometryList(_, context),
519
- Geometry: (_) => se_RouteAvoidanceAreaGeometry(_, context),
520
- });
521
- };
522
- const se_RouteAvoidanceAreaGeometry = (input, context) => {
523
- return (0, smithy_client_1.take)(input, {
524
- BoundingBox: (_) => se_BoundingBox(_, context),
525
- Corridor: (_) => se_Corridor(_, context),
526
- Polygon: (_) => se_LinearRings(_, context),
527
- PolylineCorridor: smithy_client_1._json,
528
- PolylinePolygon: smithy_client_1._json,
529
- });
530
- };
531
- const se_RouteAvoidanceAreaGeometryList = (input, context) => {
532
- return input
533
- .filter((e) => e != null)
534
- .map((entry) => {
535
- return se_RouteAvoidanceAreaGeometry(entry, context);
536
- });
537
- };
538
- const se_RouteAvoidanceAreaList = (input, context) => {
539
- return input
540
- .filter((e) => e != null)
541
- .map((entry) => {
542
- return se_RouteAvoidanceArea(entry, context);
543
- });
544
- };
545
- const se_RouteAvoidanceOptions = (input, context) => {
546
- return (0, smithy_client_1.take)(input, {
547
- Areas: (_) => se_RouteAvoidanceAreaList(_, context),
548
- CarShuttleTrains: [],
549
- ControlledAccessHighways: [],
550
- DirtRoads: [],
551
- Ferries: [],
552
- SeasonalClosure: [],
553
- TollRoads: [],
554
- TollTransponders: [],
555
- TruckRoadTypes: smithy_client_1._json,
556
- Tunnels: [],
557
- UTurns: [],
558
- ZoneCategories: smithy_client_1._json,
559
- });
560
- };
561
- const se_RouteCarOptions = (input, context) => {
562
- return (0, smithy_client_1.take)(input, {
563
- EngineType: [],
564
- LicensePlate: smithy_client_1._json,
565
- MaxSpeed: smithy_client_1.serializeFloat,
566
- Occupancy: [],
567
- });
568
- };
569
- const se_RouteDestinationOptions = (input, context) => {
570
- return (0, smithy_client_1.take)(input, {
571
- AvoidActionsForDistance: [],
572
- AvoidUTurns: [],
573
- Heading: smithy_client_1.serializeFloat,
574
- Matching: smithy_client_1._json,
575
- SideOfStreet: (_) => se_RouteSideOfStreetOptions(_, context),
576
- StopDuration: [],
577
- });
578
- };
579
- const se_RouteMatrixAvoidanceArea = (input, context) => {
580
- return (0, smithy_client_1.take)(input, {
581
- Geometry: (_) => se_RouteMatrixAvoidanceAreaGeometry(_, context),
582
- });
583
- };
584
- const se_RouteMatrixAvoidanceAreaGeometry = (input, context) => {
585
- return (0, smithy_client_1.take)(input, {
586
- BoundingBox: (_) => se_BoundingBox(_, context),
587
- Polygon: (_) => se_LinearRings(_, context),
588
- PolylinePolygon: smithy_client_1._json,
589
- });
590
- };
591
- const se_RouteMatrixAvoidanceAreaList = (input, context) => {
592
- return input
593
- .filter((e) => e != null)
594
- .map((entry) => {
595
- return se_RouteMatrixAvoidanceArea(entry, context);
596
- });
597
- };
598
- const se_RouteMatrixAvoidanceOptions = (input, context) => {
599
- return (0, smithy_client_1.take)(input, {
600
- Areas: (_) => se_RouteMatrixAvoidanceAreaList(_, context),
601
- CarShuttleTrains: [],
602
- ControlledAccessHighways: [],
603
- DirtRoads: [],
604
- Ferries: [],
605
- TollRoads: [],
606
- TollTransponders: [],
607
- TruckRoadTypes: smithy_client_1._json,
608
- Tunnels: [],
609
- UTurns: [],
610
- ZoneCategories: smithy_client_1._json,
611
- });
612
- };
613
- const se_RouteMatrixBoundary = (input, context) => {
614
- return (0, smithy_client_1.take)(input, {
615
- Geometry: (_) => se_RouteMatrixBoundaryGeometry(_, context),
616
- Unbounded: [],
617
- });
618
- };
619
- const se_RouteMatrixBoundaryGeometry = (input, context) => {
620
- return (0, smithy_client_1.take)(input, {
621
- AutoCircle: smithy_client_1._json,
622
- BoundingBox: (_) => se_BoundingBox(_, context),
623
- Circle: (_) => se_Circle(_, context),
624
- Polygon: (_) => se_LinearRings(_, context),
625
- });
626
- };
627
- const se_RouteMatrixCarOptions = (input, context) => {
628
- return (0, smithy_client_1.take)(input, {
629
- LicensePlate: smithy_client_1._json,
630
- MaxSpeed: smithy_client_1.serializeFloat,
631
- Occupancy: [],
632
- });
633
- };
634
- const se_RouteMatrixDestination = (input, context) => {
635
- return (0, smithy_client_1.take)(input, {
636
- Options: (_) => se_RouteMatrixDestinationOptions(_, context),
637
- Position: (_) => se_Position(_, context),
638
- });
639
- };
640
- const se_RouteMatrixDestinationList = (input, context) => {
641
- return input
642
- .filter((e) => e != null)
643
- .map((entry) => {
644
- return se_RouteMatrixDestination(entry, context);
645
- });
646
- };
647
- const se_RouteMatrixDestinationOptions = (input, context) => {
648
- return (0, smithy_client_1.take)(input, {
649
- AvoidActionsForDistance: [],
650
- Heading: smithy_client_1.serializeFloat,
651
- Matching: smithy_client_1._json,
652
- SideOfStreet: (_) => se_RouteMatrixSideOfStreetOptions(_, context),
653
- });
654
- };
655
- const se_RouteMatrixOrigin = (input, context) => {
656
- return (0, smithy_client_1.take)(input, {
657
- Options: (_) => se_RouteMatrixOriginOptions(_, context),
658
- Position: (_) => se_Position(_, context),
659
- });
660
- };
661
- const se_RouteMatrixOriginList = (input, context) => {
662
- return input
663
- .filter((e) => e != null)
664
- .map((entry) => {
665
- return se_RouteMatrixOrigin(entry, context);
666
- });
667
- };
668
- const se_RouteMatrixOriginOptions = (input, context) => {
669
- return (0, smithy_client_1.take)(input, {
670
- AvoidActionsForDistance: [],
671
- Heading: smithy_client_1.serializeFloat,
672
- Matching: smithy_client_1._json,
673
- SideOfStreet: (_) => se_RouteMatrixSideOfStreetOptions(_, context),
674
- });
675
- };
676
- const se_RouteMatrixScooterOptions = (input, context) => {
677
- return (0, smithy_client_1.take)(input, {
678
- LicensePlate: smithy_client_1._json,
679
- MaxSpeed: smithy_client_1.serializeFloat,
680
- Occupancy: [],
681
- });
682
- };
683
- const se_RouteMatrixSideOfStreetOptions = (input, context) => {
684
- return (0, smithy_client_1.take)(input, {
685
- Position: (_) => se_Position(_, context),
686
- UseWith: [],
687
- });
688
- };
689
- const se_RouteMatrixTravelModeOptions = (input, context) => {
690
- return (0, smithy_client_1.take)(input, {
691
- Car: (_) => se_RouteMatrixCarOptions(_, context),
692
- Scooter: (_) => se_RouteMatrixScooterOptions(_, context),
693
- Truck: (_) => se_RouteMatrixTruckOptions(_, context),
694
- });
695
- };
696
- const se_RouteMatrixTruckOptions = (input, context) => {
697
- return (0, smithy_client_1.take)(input, {
698
- AxleCount: [],
699
- GrossWeight: [],
700
- HazardousCargos: smithy_client_1._json,
701
- Height: [],
702
- KpraLength: [],
703
- Length: [],
704
- LicensePlate: smithy_client_1._json,
705
- MaxSpeed: smithy_client_1.serializeFloat,
706
- Occupancy: [],
707
- PayloadCapacity: [],
708
- Trailer: smithy_client_1._json,
709
- TruckType: [],
710
- TunnelRestrictionCode: [],
711
- WeightPerAxle: [],
712
- WeightPerAxleGroup: smithy_client_1._json,
713
- Width: [],
714
- });
715
- };
716
- const se_RouteOriginOptions = (input, context) => {
717
- return (0, smithy_client_1.take)(input, {
718
- AvoidActionsForDistance: [],
719
- AvoidUTurns: [],
720
- Heading: smithy_client_1.serializeFloat,
721
- Matching: smithy_client_1._json,
722
- SideOfStreet: (_) => se_RouteSideOfStreetOptions(_, context),
723
- });
724
- };
725
- const se_RoutePedestrianOptions = (input, context) => {
726
- return (0, smithy_client_1.take)(input, {
727
- Speed: smithy_client_1.serializeFloat,
728
- });
729
- };
730
- const se_RouteScooterOptions = (input, context) => {
731
- return (0, smithy_client_1.take)(input, {
732
- EngineType: [],
733
- LicensePlate: smithy_client_1._json,
734
- MaxSpeed: smithy_client_1.serializeFloat,
735
- Occupancy: [],
736
- });
737
- };
738
- const se_RouteSideOfStreetOptions = (input, context) => {
739
- return (0, smithy_client_1.take)(input, {
740
- Position: (_) => se_Position(_, context),
741
- UseWith: [],
742
- });
743
- };
744
- const se_RouteTravelModeOptions = (input, context) => {
745
- return (0, smithy_client_1.take)(input, {
746
- Car: (_) => se_RouteCarOptions(_, context),
747
- Pedestrian: (_) => se_RoutePedestrianOptions(_, context),
748
- Scooter: (_) => se_RouteScooterOptions(_, context),
749
- Truck: (_) => se_RouteTruckOptions(_, context),
750
- });
751
- };
752
- const se_RouteTruckOptions = (input, context) => {
753
- return (0, smithy_client_1.take)(input, {
754
- AxleCount: [],
755
- EngineType: [],
756
- GrossWeight: [],
757
- HazardousCargos: smithy_client_1._json,
758
- Height: [],
759
- HeightAboveFirstAxle: [],
760
- KpraLength: [],
761
- Length: [],
762
- LicensePlate: smithy_client_1._json,
763
- MaxSpeed: smithy_client_1.serializeFloat,
764
- Occupancy: [],
765
- PayloadCapacity: [],
766
- TireCount: [],
767
- Trailer: smithy_client_1._json,
768
- TruckType: [],
769
- TunnelRestrictionCode: [],
770
- WeightPerAxle: [],
771
- WeightPerAxleGroup: smithy_client_1._json,
772
- Width: [],
773
- });
774
- };
775
- const se_RouteWaypoint = (input, context) => {
776
- return (0, smithy_client_1.take)(input, {
777
- AvoidActionsForDistance: [],
778
- AvoidUTurns: [],
779
- Heading: smithy_client_1.serializeFloat,
780
- Matching: smithy_client_1._json,
781
- PassThrough: [],
782
- Position: (_) => se_Position(_, context),
783
- SideOfStreet: (_) => se_RouteSideOfStreetOptions(_, context),
784
- StopDuration: [],
785
- });
786
- };
787
- const se_RouteWaypointList = (input, context) => {
788
- return input
789
- .filter((e) => e != null)
790
- .map((entry) => {
791
- return se_RouteWaypoint(entry, context);
792
- });
793
- };
794
- const se_WaypointOptimizationAvoidanceArea = (input, context) => {
795
- return (0, smithy_client_1.take)(input, {
796
- Geometry: (_) => se_WaypointOptimizationAvoidanceAreaGeometry(_, context),
797
- });
798
- };
799
- const se_WaypointOptimizationAvoidanceAreaGeometry = (input, context) => {
800
- return (0, smithy_client_1.take)(input, {
801
- BoundingBox: (_) => se_BoundingBox(_, context),
802
- });
803
- };
804
- const se_WaypointOptimizationAvoidanceAreaList = (input, context) => {
805
- return input
806
- .filter((e) => e != null)
807
- .map((entry) => {
808
- return se_WaypointOptimizationAvoidanceArea(entry, context);
809
- });
810
- };
811
- const se_WaypointOptimizationAvoidanceOptions = (input, context) => {
812
- return (0, smithy_client_1.take)(input, {
813
- Areas: (_) => se_WaypointOptimizationAvoidanceAreaList(_, context),
814
- CarShuttleTrains: [],
815
- ControlledAccessHighways: [],
816
- DirtRoads: [],
817
- Ferries: [],
818
- TollRoads: [],
819
- Tunnels: [],
820
- UTurns: [],
821
- });
822
- };
823
- const se_WaypointOptimizationDestinationOptions = (input, context) => {
824
- return (0, smithy_client_1.take)(input, {
825
- AccessHours: smithy_client_1._json,
826
- AppointmentTime: [],
827
- Heading: smithy_client_1.serializeFloat,
828
- Id: [],
829
- ServiceDuration: [],
830
- SideOfStreet: (_) => se_WaypointOptimizationSideOfStreetOptions(_, context),
831
- });
832
- };
833
- const se_WaypointOptimizationPedestrianOptions = (input, context) => {
834
- return (0, smithy_client_1.take)(input, {
835
- Speed: smithy_client_1.serializeFloat,
836
- });
837
- };
838
- const se_WaypointOptimizationSideOfStreetOptions = (input, context) => {
839
- return (0, smithy_client_1.take)(input, {
840
- Position: (_) => se_Position(_, context),
841
- UseWith: [],
842
- });
843
- };
844
- const se_WaypointOptimizationTravelModeOptions = (input, context) => {
845
- return (0, smithy_client_1.take)(input, {
846
- Pedestrian: (_) => se_WaypointOptimizationPedestrianOptions(_, context),
847
- Truck: smithy_client_1._json,
848
- });
849
- };
850
- const se_WaypointOptimizationWaypoint = (input, context) => {
851
- return (0, smithy_client_1.take)(input, {
852
- AccessHours: smithy_client_1._json,
853
- AppointmentTime: [],
854
- Before: smithy_client_1._json,
855
- Heading: smithy_client_1.serializeFloat,
856
- Id: [],
857
- Position: (_) => se_Position(_, context),
858
- ServiceDuration: [],
859
- SideOfStreet: (_) => se_WaypointOptimizationSideOfStreetOptions(_, context),
860
- });
861
- };
862
- const se_WaypointOptimizationWaypointList = (input, context) => {
863
- return input
864
- .filter((e) => e != null)
865
- .map((entry) => {
866
- return se_WaypointOptimizationWaypoint(entry, context);
867
- });
868
- };
869
- const de_BoundingBox = (output, context) => {
870
- const retVal = (output || [])
871
- .filter((e) => e != null)
872
- .map((entry) => {
873
- return (0, smithy_client_1.limitedParseDouble)(entry);
874
- });
875
- return retVal;
876
- };
877
- const de_Circle = (output, context) => {
878
- return (0, smithy_client_1.take)(output, {
879
- Center: (_) => de_Position(_, context),
880
- Radius: smithy_client_1.limitedParseDouble,
881
- });
882
- };
883
- const de_Isoline = (output, context) => {
884
- return (0, smithy_client_1.take)(output, {
885
- Connections: (_) => de_IsolineConnectionList(_, context),
886
- DistanceThreshold: smithy_client_1.expectLong,
887
- Geometries: (_) => de_IsolineShapeGeometryList(_, context),
888
- TimeThreshold: smithy_client_1.expectLong,
889
- });
890
- };
891
- const de_IsolineConnection = (output, context) => {
892
- return (0, smithy_client_1.take)(output, {
893
- FromPolygonIndex: smithy_client_1.expectInt32,
894
- Geometry: (_) => de_IsolineConnectionGeometry(_, context),
895
- ToPolygonIndex: smithy_client_1.expectInt32,
896
- });
897
- };
898
- const de_IsolineConnectionGeometry = (output, context) => {
899
- return (0, smithy_client_1.take)(output, {
900
- LineString: (_) => de_LineString(_, context),
901
- Polyline: smithy_client_1.expectString,
902
- });
903
- };
904
- const de_IsolineConnectionList = (output, context) => {
905
- const retVal = (output || [])
906
- .filter((e) => e != null)
907
- .map((entry) => {
908
- return de_IsolineConnection(entry, context);
909
- });
910
- return retVal;
911
- };
912
- const de_IsolineList = (output, context) => {
913
- const retVal = (output || [])
914
- .filter((e) => e != null)
915
- .map((entry) => {
916
- return de_Isoline(entry, context);
917
- });
918
- return retVal;
919
- };
920
- const de_IsolineShapeGeometry = (output, context) => {
921
- return (0, smithy_client_1.take)(output, {
922
- Polygon: (_) => de_LinearRings(_, context),
923
- PolylinePolygon: smithy_client_1._json,
924
- });
925
- };
926
- const de_IsolineShapeGeometryList = (output, context) => {
927
- const retVal = (output || [])
928
- .filter((e) => e != null)
929
- .map((entry) => {
930
- return de_IsolineShapeGeometry(entry, context);
931
- });
932
- return retVal;
933
- };
934
- const de_LinearRing = (output, context) => {
935
- const retVal = (output || [])
936
- .filter((e) => e != null)
937
- .map((entry) => {
938
- return de_Position(entry, context);
939
- });
940
- return retVal;
941
- };
942
- const de_LinearRings = (output, context) => {
943
- const retVal = (output || [])
944
- .filter((e) => e != null)
945
- .map((entry) => {
946
- return de_LinearRing(entry, context);
947
- });
948
- return retVal;
949
- };
950
- const de_LineString = (output, context) => {
951
- const retVal = (output || [])
952
- .filter((e) => e != null)
953
- .map((entry) => {
954
- return de_Position(entry, context);
955
- });
956
- return retVal;
957
- };
958
- const de_Position = (output, context) => {
959
- const retVal = (output || [])
960
- .filter((e) => e != null)
961
- .map((entry) => {
962
- return (0, smithy_client_1.limitedParseDouble)(entry);
963
- });
964
- return retVal;
965
- };
966
- const de_Position23 = (output, context) => {
967
- const retVal = (output || [])
968
- .filter((e) => e != null)
969
- .map((entry) => {
970
- return (0, smithy_client_1.limitedParseDouble)(entry);
971
- });
972
- return retVal;
973
- };
974
- const de_RoadSnapSnappedGeometry = (output, context) => {
975
- return (0, smithy_client_1.take)(output, {
976
- LineString: (_) => de_LineString(_, context),
977
- Polyline: smithy_client_1.expectString,
978
- });
979
- };
980
- const de_RoadSnapSnappedTracePoint = (output, context) => {
981
- return (0, smithy_client_1.take)(output, {
982
- Confidence: smithy_client_1.limitedParseDouble,
983
- OriginalPosition: (_) => de_Position(_, context),
984
- SnappedPosition: (_) => de_Position(_, context),
985
- });
986
- };
987
- const de_RoadSnapSnappedTracePointList = (output, context) => {
988
- const retVal = (output || [])
989
- .filter((e) => e != null)
990
- .map((entry) => {
991
- return de_RoadSnapSnappedTracePoint(entry, context);
992
- });
993
- return retVal;
994
- };
995
- const de_Route = (output, context) => {
996
- return (0, smithy_client_1.take)(output, {
997
- Legs: (_) => de_RouteLegList(_, context),
998
- MajorRoadLabels: smithy_client_1._json,
999
- Summary: (_) => de_RouteSummary(_, context),
1000
- });
1001
- };
1002
- const de_RouteContinueHighwayStepDetails = (output, context) => {
1003
- return (0, smithy_client_1.take)(output, {
1004
- Intersection: smithy_client_1._json,
1005
- SteeringDirection: smithy_client_1.expectString,
1006
- TurnAngle: smithy_client_1.limitedParseDouble,
1007
- TurnIntensity: smithy_client_1.expectString,
1008
- });
1009
- };
1010
- const de_RouteEnterHighwayStepDetails = (output, context) => {
1011
- return (0, smithy_client_1.take)(output, {
1012
- Intersection: smithy_client_1._json,
1013
- SteeringDirection: smithy_client_1.expectString,
1014
- TurnAngle: smithy_client_1.limitedParseDouble,
1015
- TurnIntensity: smithy_client_1.expectString,
1016
- });
1017
- };
1018
- const de_RouteExitStepDetails = (output, context) => {
1019
- return (0, smithy_client_1.take)(output, {
1020
- Intersection: smithy_client_1._json,
1021
- RelativeExit: smithy_client_1.expectInt32,
1022
- SteeringDirection: smithy_client_1.expectString,
1023
- TurnAngle: smithy_client_1.limitedParseDouble,
1024
- TurnIntensity: smithy_client_1.expectString,
1025
- });
1026
- };
1027
- const de_RouteFerryArrival = (output, context) => {
1028
- return (0, smithy_client_1.take)(output, {
1029
- Place: (_) => de_RouteFerryPlace(_, context),
1030
- Time: smithy_client_1.expectString,
1031
- });
1032
- };
1033
- const de_RouteFerryDeparture = (output, context) => {
1034
- return (0, smithy_client_1.take)(output, {
1035
- Place: (_) => de_RouteFerryPlace(_, context),
1036
- Time: smithy_client_1.expectString,
1037
- });
1038
- };
1039
- const de_RouteFerryLegDetails = (output, context) => {
1040
- return (0, smithy_client_1.take)(output, {
1041
- AfterTravelSteps: smithy_client_1._json,
1042
- Arrival: (_) => de_RouteFerryArrival(_, context),
1043
- BeforeTravelSteps: smithy_client_1._json,
1044
- Departure: (_) => de_RouteFerryDeparture(_, context),
1045
- Notices: smithy_client_1._json,
1046
- PassThroughWaypoints: (_) => de_RoutePassThroughWaypointList(_, context),
1047
- RouteName: smithy_client_1.expectString,
1048
- Spans: smithy_client_1._json,
1049
- Summary: smithy_client_1._json,
1050
- TravelSteps: smithy_client_1._json,
1051
- });
1052
- };
1053
- const de_RouteFerryPlace = (output, context) => {
1054
- return (0, smithy_client_1.take)(output, {
1055
- Name: smithy_client_1.expectString,
1056
- OriginalPosition: (_) => de_Position23(_, context),
1057
- Position: (_) => de_Position23(_, context),
1058
- WaypointIndex: smithy_client_1.expectInt32,
1059
- });
1060
- };
1061
- const de_RouteKeepStepDetails = (output, context) => {
1062
- return (0, smithy_client_1.take)(output, {
1063
- Intersection: smithy_client_1._json,
1064
- SteeringDirection: smithy_client_1.expectString,
1065
- TurnAngle: smithy_client_1.limitedParseDouble,
1066
- TurnIntensity: smithy_client_1.expectString,
1067
- });
1068
- };
1069
- const de_RouteLeg = (output, context) => {
1070
- return (0, smithy_client_1.take)(output, {
1071
- FerryLegDetails: (_) => de_RouteFerryLegDetails(_, context),
1072
- Geometry: (_) => de_RouteLegGeometry(_, context),
1073
- Language: smithy_client_1.expectString,
1074
- PedestrianLegDetails: (_) => de_RoutePedestrianLegDetails(_, context),
1075
- TravelMode: smithy_client_1.expectString,
1076
- Type: smithy_client_1.expectString,
1077
- VehicleLegDetails: (_) => de_RouteVehicleLegDetails(_, context),
1078
- });
1079
- };
1080
- const de_RouteLegGeometry = (output, context) => {
1081
- return (0, smithy_client_1.take)(output, {
1082
- LineString: (_) => de_LineString(_, context),
1083
- Polyline: smithy_client_1.expectString,
1084
- });
1085
- };
1086
- const de_RouteLegList = (output, context) => {
1087
- const retVal = (output || [])
1088
- .filter((e) => e != null)
1089
- .map((entry) => {
1090
- return de_RouteLeg(entry, context);
1091
- });
1092
- return retVal;
1093
- };
1094
- const de_RouteList = (output, context) => {
1095
- const retVal = (output || [])
1096
- .filter((e) => e != null)
1097
- .map((entry) => {
1098
- return de_Route(entry, context);
1099
- });
1100
- return retVal;
1101
- };
1102
- const de_RouteMatrixBoundary = (output, context) => {
1103
- return (0, smithy_client_1.take)(output, {
1104
- Geometry: (_) => de_RouteMatrixBoundaryGeometry(_, context),
1105
- Unbounded: smithy_client_1.expectBoolean,
1106
- });
1107
- };
1108
- const de_RouteMatrixBoundaryGeometry = (output, context) => {
1109
- return (0, smithy_client_1.take)(output, {
1110
- AutoCircle: smithy_client_1._json,
1111
- BoundingBox: (_) => de_BoundingBox(_, context),
1112
- Circle: (_) => de_Circle(_, context),
1113
- Polygon: (_) => de_LinearRings(_, context),
1114
- });
1115
- };
1116
- const de_RoutePassThroughPlace = (output, context) => {
1117
- return (0, smithy_client_1.take)(output, {
1118
- OriginalPosition: (_) => de_Position23(_, context),
1119
- Position: (_) => de_Position23(_, context),
1120
- WaypointIndex: smithy_client_1.expectInt32,
1121
- });
1122
- };
1123
- const de_RoutePassThroughWaypoint = (output, context) => {
1124
- return (0, smithy_client_1.take)(output, {
1125
- GeometryOffset: smithy_client_1.expectInt32,
1126
- Place: (_) => de_RoutePassThroughPlace(_, context),
1127
- });
1128
- };
1129
- const de_RoutePassThroughWaypointList = (output, context) => {
1130
- const retVal = (output || [])
1131
- .filter((e) => e != null)
1132
- .map((entry) => {
1133
- return de_RoutePassThroughWaypoint(entry, context);
1134
- });
1135
- return retVal;
1136
- };
1137
- const de_RoutePedestrianArrival = (output, context) => {
1138
- return (0, smithy_client_1.take)(output, {
1139
- Place: (_) => de_RoutePedestrianPlace(_, context),
1140
- Time: smithy_client_1.expectString,
1141
- });
1142
- };
1143
- const de_RoutePedestrianDeparture = (output, context) => {
1144
- return (0, smithy_client_1.take)(output, {
1145
- Place: (_) => de_RoutePedestrianPlace(_, context),
1146
- Time: smithy_client_1.expectString,
1147
- });
1148
- };
1149
- const de_RoutePedestrianLegDetails = (output, context) => {
1150
- return (0, smithy_client_1.take)(output, {
1151
- Arrival: (_) => de_RoutePedestrianArrival(_, context),
1152
- Departure: (_) => de_RoutePedestrianDeparture(_, context),
1153
- Notices: smithy_client_1._json,
1154
- PassThroughWaypoints: (_) => de_RoutePassThroughWaypointList(_, context),
1155
- Spans: (_) => de_RoutePedestrianSpanList(_, context),
1156
- Summary: smithy_client_1._json,
1157
- TravelSteps: (_) => de_RoutePedestrianTravelStepList(_, context),
1158
- });
1159
- };
1160
- const de_RoutePedestrianPlace = (output, context) => {
1161
- return (0, smithy_client_1.take)(output, {
1162
- Name: smithy_client_1.expectString,
1163
- OriginalPosition: (_) => de_Position23(_, context),
1164
- Position: (_) => de_Position23(_, context),
1165
- SideOfStreet: smithy_client_1.expectString,
1166
- WaypointIndex: smithy_client_1.expectInt32,
1167
- });
1168
- };
1169
- const de_RoutePedestrianSpan = (output, context) => {
1170
- return (0, smithy_client_1.take)(output, {
1171
- BestCaseDuration: smithy_client_1.expectLong,
1172
- Country: smithy_client_1.expectString,
1173
- Distance: smithy_client_1.expectLong,
1174
- Duration: smithy_client_1.expectLong,
1175
- DynamicSpeed: (_) => de_RouteSpanDynamicSpeedDetails(_, context),
1176
- FunctionalClassification: smithy_client_1.expectInt32,
1177
- GeometryOffset: smithy_client_1.expectInt32,
1178
- Incidents: smithy_client_1._json,
1179
- Names: smithy_client_1._json,
1180
- PedestrianAccess: smithy_client_1._json,
1181
- Region: smithy_client_1.expectString,
1182
- RoadAttributes: smithy_client_1._json,
1183
- RouteNumbers: smithy_client_1._json,
1184
- SpeedLimit: (_) => de_RouteSpanSpeedLimitDetails(_, context),
1185
- TypicalDuration: smithy_client_1.expectLong,
1186
- });
1187
- };
1188
- const de_RoutePedestrianSpanList = (output, context) => {
1189
- const retVal = (output || [])
1190
- .filter((e) => e != null)
1191
- .map((entry) => {
1192
- return de_RoutePedestrianSpan(entry, context);
1193
- });
1194
- return retVal;
1195
- };
1196
- const de_RoutePedestrianTravelStep = (output, context) => {
1197
- return (0, smithy_client_1.take)(output, {
1198
- ContinueStepDetails: smithy_client_1._json,
1199
- CurrentRoad: smithy_client_1._json,
1200
- Distance: smithy_client_1.expectLong,
1201
- Duration: smithy_client_1.expectLong,
1202
- ExitNumber: smithy_client_1._json,
1203
- GeometryOffset: smithy_client_1.expectInt32,
1204
- Instruction: smithy_client_1.expectString,
1205
- KeepStepDetails: (_) => de_RouteKeepStepDetails(_, context),
1206
- NextRoad: smithy_client_1._json,
1207
- RoundaboutEnterStepDetails: (_) => de_RouteRoundaboutEnterStepDetails(_, context),
1208
- RoundaboutExitStepDetails: (_) => de_RouteRoundaboutExitStepDetails(_, context),
1209
- RoundaboutPassStepDetails: (_) => de_RouteRoundaboutPassStepDetails(_, context),
1210
- Signpost: smithy_client_1._json,
1211
- TurnStepDetails: (_) => de_RouteTurnStepDetails(_, context),
1212
- Type: smithy_client_1.expectString,
1213
- });
1214
- };
1215
- const de_RoutePedestrianTravelStepList = (output, context) => {
1216
- const retVal = (output || [])
1217
- .filter((e) => e != null)
1218
- .map((entry) => {
1219
- return de_RoutePedestrianTravelStep(entry, context);
1220
- });
1221
- return retVal;
1222
- };
1223
- const de_RouteRampStepDetails = (output, context) => {
1224
- return (0, smithy_client_1.take)(output, {
1225
- Intersection: smithy_client_1._json,
1226
- SteeringDirection: smithy_client_1.expectString,
1227
- TurnAngle: smithy_client_1.limitedParseDouble,
1228
- TurnIntensity: smithy_client_1.expectString,
1229
- });
1230
- };
1231
- const de_RouteRoundaboutEnterStepDetails = (output, context) => {
1232
- return (0, smithy_client_1.take)(output, {
1233
- Intersection: smithy_client_1._json,
1234
- SteeringDirection: smithy_client_1.expectString,
1235
- TurnAngle: smithy_client_1.limitedParseDouble,
1236
- TurnIntensity: smithy_client_1.expectString,
1237
- });
1238
- };
1239
- const de_RouteRoundaboutExitStepDetails = (output, context) => {
1240
- return (0, smithy_client_1.take)(output, {
1241
- Intersection: smithy_client_1._json,
1242
- RelativeExit: smithy_client_1.expectInt32,
1243
- RoundaboutAngle: smithy_client_1.limitedParseDouble,
1244
- SteeringDirection: smithy_client_1.expectString,
1245
- });
1246
- };
1247
- const de_RouteRoundaboutPassStepDetails = (output, context) => {
1248
- return (0, smithy_client_1.take)(output, {
1249
- Intersection: smithy_client_1._json,
1250
- SteeringDirection: smithy_client_1.expectString,
1251
- TurnAngle: smithy_client_1.limitedParseDouble,
1252
- TurnIntensity: smithy_client_1.expectString,
1253
- });
1254
- };
1255
- const de_RouteSpanDynamicSpeedDetails = (output, context) => {
1256
- return (0, smithy_client_1.take)(output, {
1257
- BestCaseSpeed: smithy_client_1.limitedParseDouble,
1258
- TurnDuration: smithy_client_1.expectLong,
1259
- TypicalSpeed: smithy_client_1.limitedParseDouble,
1260
- });
1261
- };
1262
- const de_RouteSpanSpeedLimitDetails = (output, context) => {
1263
- return (0, smithy_client_1.take)(output, {
1264
- MaxSpeed: smithy_client_1.limitedParseDouble,
1265
- Unlimited: smithy_client_1.expectBoolean,
1266
- });
1267
- };
1268
- const de_RouteSummary = (output, context) => {
1269
- return (0, smithy_client_1.take)(output, {
1270
- Distance: smithy_client_1.expectLong,
1271
- Duration: smithy_client_1.expectLong,
1272
- Tolls: (_) => de_RouteTollSummary(_, context),
1273
- });
1274
- };
1275
- const de_RouteToll = (output, context) => {
1276
- return (0, smithy_client_1.take)(output, {
1277
- Country: smithy_client_1.expectString,
1278
- PaymentSites: (_) => de_RouteTollPaymentSiteList(_, context),
1279
- Rates: (_) => de_RouteTollRateList(_, context),
1280
- Systems: smithy_client_1._json,
1281
- });
1282
- };
1283
- const de_RouteTollList = (output, context) => {
1284
- const retVal = (output || [])
1285
- .filter((e) => e != null)
1286
- .map((entry) => {
1287
- return de_RouteToll(entry, context);
1288
- });
1289
- return retVal;
1290
- };
1291
- const de_RouteTollPaymentSite = (output, context) => {
1292
- return (0, smithy_client_1.take)(output, {
1293
- Name: smithy_client_1.expectString,
1294
- Position: (_) => de_Position23(_, context),
1295
- });
1296
- };
1297
- const de_RouteTollPaymentSiteList = (output, context) => {
1298
- const retVal = (output || [])
1299
- .filter((e) => e != null)
1300
- .map((entry) => {
1301
- return de_RouteTollPaymentSite(entry, context);
1302
- });
1303
- return retVal;
1304
- };
1305
- const de_RouteTollPrice = (output, context) => {
1306
- return (0, smithy_client_1.take)(output, {
1307
- Currency: smithy_client_1.expectString,
1308
- Estimate: smithy_client_1.expectBoolean,
1309
- PerDuration: smithy_client_1.expectLong,
1310
- Range: smithy_client_1.expectBoolean,
1311
- RangeValue: (_) => de_RouteTollPriceValueRange(_, context),
1312
- Value: smithy_client_1.limitedParseDouble,
1313
- });
1314
- };
1315
- const de_RouteTollPriceSummary = (output, context) => {
1316
- return (0, smithy_client_1.take)(output, {
1317
- Currency: smithy_client_1.expectString,
1318
- Estimate: smithy_client_1.expectBoolean,
1319
- Range: smithy_client_1.expectBoolean,
1320
- RangeValue: (_) => de_RouteTollPriceValueRange(_, context),
1321
- Value: smithy_client_1.limitedParseDouble,
1322
- });
1323
- };
1324
- const de_RouteTollPriceValueRange = (output, context) => {
1325
- return (0, smithy_client_1.take)(output, {
1326
- Max: smithy_client_1.limitedParseDouble,
1327
- Min: smithy_client_1.limitedParseDouble,
1328
- });
1329
- };
1330
- const de_RouteTollRate = (output, context) => {
1331
- return (0, smithy_client_1.take)(output, {
1332
- ApplicableTimes: smithy_client_1.expectString,
1333
- ConvertedPrice: (_) => de_RouteTollPrice(_, context),
1334
- Id: smithy_client_1.expectString,
1335
- LocalPrice: (_) => de_RouteTollPrice(_, context),
1336
- Name: smithy_client_1.expectString,
1337
- Pass: smithy_client_1._json,
1338
- PaymentMethods: smithy_client_1._json,
1339
- Transponders: smithy_client_1._json,
1340
- });
1341
- };
1342
- const de_RouteTollRateList = (output, context) => {
1343
- const retVal = (output || [])
1344
- .filter((e) => e != null)
1345
- .map((entry) => {
1346
- return de_RouteTollRate(entry, context);
1347
- });
1348
- return retVal;
1349
- };
1350
- const de_RouteTollSummary = (output, context) => {
1351
- return (0, smithy_client_1.take)(output, {
1352
- Total: (_) => de_RouteTollPriceSummary(_, context),
1353
- });
1354
- };
1355
- const de_RouteTurnStepDetails = (output, context) => {
1356
- return (0, smithy_client_1.take)(output, {
1357
- Intersection: smithy_client_1._json,
1358
- SteeringDirection: smithy_client_1.expectString,
1359
- TurnAngle: smithy_client_1.limitedParseDouble,
1360
- TurnIntensity: smithy_client_1.expectString,
1361
- });
1362
- };
1363
- const de_RouteUTurnStepDetails = (output, context) => {
1364
- return (0, smithy_client_1.take)(output, {
1365
- Intersection: smithy_client_1._json,
1366
- SteeringDirection: smithy_client_1.expectString,
1367
- TurnAngle: smithy_client_1.limitedParseDouble,
1368
- TurnIntensity: smithy_client_1.expectString,
1369
- });
1370
- };
1371
- const de_RouteVehicleArrival = (output, context) => {
1372
- return (0, smithy_client_1.take)(output, {
1373
- Place: (_) => de_RouteVehiclePlace(_, context),
1374
- Time: smithy_client_1.expectString,
1375
- });
1376
- };
1377
- const de_RouteVehicleDeparture = (output, context) => {
1378
- return (0, smithy_client_1.take)(output, {
1379
- Place: (_) => de_RouteVehiclePlace(_, context),
1380
- Time: smithy_client_1.expectString,
1381
- });
1382
- };
1383
- const de_RouteVehicleLegDetails = (output, context) => {
1384
- return (0, smithy_client_1.take)(output, {
1385
- Arrival: (_) => de_RouteVehicleArrival(_, context),
1386
- Departure: (_) => de_RouteVehicleDeparture(_, context),
1387
- Incidents: smithy_client_1._json,
1388
- Notices: smithy_client_1._json,
1389
- PassThroughWaypoints: (_) => de_RoutePassThroughWaypointList(_, context),
1390
- Spans: (_) => de_RouteVehicleSpanList(_, context),
1391
- Summary: smithy_client_1._json,
1392
- TollSystems: smithy_client_1._json,
1393
- Tolls: (_) => de_RouteTollList(_, context),
1394
- TravelSteps: (_) => de_RouteVehicleTravelStepList(_, context),
1395
- TruckRoadTypes: smithy_client_1._json,
1396
- Zones: smithy_client_1._json,
1397
- });
1398
- };
1399
- const de_RouteVehiclePlace = (output, context) => {
1400
- return (0, smithy_client_1.take)(output, {
1401
- Name: smithy_client_1.expectString,
1402
- OriginalPosition: (_) => de_Position23(_, context),
1403
- Position: (_) => de_Position23(_, context),
1404
- SideOfStreet: smithy_client_1.expectString,
1405
- WaypointIndex: smithy_client_1.expectInt32,
1406
- });
1407
- };
1408
- const de_RouteVehicleSpan = (output, context) => {
1409
- return (0, smithy_client_1.take)(output, {
1410
- BestCaseDuration: smithy_client_1.expectLong,
1411
- CarAccess: smithy_client_1._json,
1412
- Country: smithy_client_1.expectString,
1413
- Distance: smithy_client_1.expectLong,
1414
- Duration: smithy_client_1.expectLong,
1415
- DynamicSpeed: (_) => de_RouteSpanDynamicSpeedDetails(_, context),
1416
- FunctionalClassification: smithy_client_1.expectInt32,
1417
- Gate: smithy_client_1.expectString,
1418
- GeometryOffset: smithy_client_1.expectInt32,
1419
- Incidents: smithy_client_1._json,
1420
- Names: smithy_client_1._json,
1421
- Notices: smithy_client_1._json,
1422
- RailwayCrossing: smithy_client_1.expectString,
1423
- Region: smithy_client_1.expectString,
1424
- RoadAttributes: smithy_client_1._json,
1425
- RouteNumbers: smithy_client_1._json,
1426
- ScooterAccess: smithy_client_1._json,
1427
- SpeedLimit: (_) => de_RouteSpanSpeedLimitDetails(_, context),
1428
- TollSystems: smithy_client_1._json,
1429
- TruckAccess: smithy_client_1._json,
1430
- TruckRoadTypes: smithy_client_1._json,
1431
- TypicalDuration: smithy_client_1.expectLong,
1432
- Zones: smithy_client_1._json,
1433
- });
1434
- };
1435
- const de_RouteVehicleSpanList = (output, context) => {
1436
- const retVal = (output || [])
1437
- .filter((e) => e != null)
1438
- .map((entry) => {
1439
- return de_RouteVehicleSpan(entry, context);
1440
- });
1441
- return retVal;
1442
- };
1443
- const de_RouteVehicleTravelStep = (output, context) => {
1444
- return (0, smithy_client_1.take)(output, {
1445
- ContinueHighwayStepDetails: (_) => de_RouteContinueHighwayStepDetails(_, context),
1446
- ContinueStepDetails: smithy_client_1._json,
1447
- CurrentRoad: smithy_client_1._json,
1448
- Distance: smithy_client_1.expectLong,
1449
- Duration: smithy_client_1.expectLong,
1450
- EnterHighwayStepDetails: (_) => de_RouteEnterHighwayStepDetails(_, context),
1451
- ExitNumber: smithy_client_1._json,
1452
- ExitStepDetails: (_) => de_RouteExitStepDetails(_, context),
1453
- GeometryOffset: smithy_client_1.expectInt32,
1454
- Instruction: smithy_client_1.expectString,
1455
- KeepStepDetails: (_) => de_RouteKeepStepDetails(_, context),
1456
- NextRoad: smithy_client_1._json,
1457
- RampStepDetails: (_) => de_RouteRampStepDetails(_, context),
1458
- RoundaboutEnterStepDetails: (_) => de_RouteRoundaboutEnterStepDetails(_, context),
1459
- RoundaboutExitStepDetails: (_) => de_RouteRoundaboutExitStepDetails(_, context),
1460
- RoundaboutPassStepDetails: (_) => de_RouteRoundaboutPassStepDetails(_, context),
1461
- Signpost: smithy_client_1._json,
1462
- TurnStepDetails: (_) => de_RouteTurnStepDetails(_, context),
1463
- Type: smithy_client_1.expectString,
1464
- UTurnStepDetails: (_) => de_RouteUTurnStepDetails(_, context),
1465
- });
1466
- };
1467
- const de_RouteVehicleTravelStepList = (output, context) => {
1468
- const retVal = (output || [])
1469
- .filter((e) => e != null)
1470
- .map((entry) => {
1471
- return de_RouteVehicleTravelStep(entry, context);
1472
- });
1473
- return retVal;
1474
- };
1475
- const de_ValidationExceptionField = (output, context) => {
1476
- return (0, smithy_client_1.take)(output, {
1477
- Message: [, smithy_client_1.expectString, `message`],
1478
- Name: [, smithy_client_1.expectString, `name`],
1479
- });
1480
- };
1481
- const de_ValidationExceptionFieldList = (output, context) => {
1482
- const retVal = (output || [])
1483
- .filter((e) => e != null)
1484
- .map((entry) => {
1485
- return de_ValidationExceptionField(entry, context);
1486
- });
1487
- return retVal;
1488
- };
1489
- const de_WaypointOptimizationImpedingWaypoint = (output, context) => {
1490
- return (0, smithy_client_1.take)(output, {
1491
- FailedConstraints: smithy_client_1._json,
1492
- Id: smithy_client_1.expectString,
1493
- Position: (_) => de_Position(_, context),
1494
- });
1495
- };
1496
- const de_WaypointOptimizationImpedingWaypointList = (output, context) => {
1497
- const retVal = (output || [])
1498
- .filter((e) => e != null)
1499
- .map((entry) => {
1500
- return de_WaypointOptimizationImpedingWaypoint(entry, context);
1501
- });
1502
- return retVal;
1503
- };
1504
- const de_WaypointOptimizationOptimizedWaypoint = (output, context) => {
1505
- return (0, smithy_client_1.take)(output, {
1506
- ArrivalTime: smithy_client_1.expectString,
1507
- ClusterIndex: smithy_client_1.expectInt32,
1508
- DepartureTime: smithy_client_1.expectString,
1509
- Id: smithy_client_1.expectString,
1510
- Position: (_) => de_Position(_, context),
1511
- });
1512
- };
1513
- const de_WaypointOptimizationOptimizedWaypointList = (output, context) => {
1514
- const retVal = (output || [])
1515
- .filter((e) => e != null)
1516
- .map((entry) => {
1517
- return de_WaypointOptimizationOptimizedWaypoint(entry, context);
1518
- });
1519
- return retVal;
1520
- };
1521
- const deserializeMetadata = (output) => ({
1522
- httpStatusCode: output.statusCode,
1523
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1524
- extendedRequestId: output.headers["x-amz-id-2"],
1525
- cfId: output.headers["x-amz-cf-id"],
1526
- });
1527
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1528
- const _K = "Key";
1529
- const _PB = "PricingBucket";
1530
- const _k = "key";
1531
- const _xagpb = "x-amz-geo-pricing-bucket";