@aws-sdk/client-geo-routes 3.1058.0 → 3.1059.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist-cjs/endpoint/bdd.js +26 -44
- package/dist-cjs/index.js +239 -0
- package/dist-cjs/schemas/schemas_0.js +653 -64
- package/dist-es/endpoint/bdd.js +26 -44
- package/dist-es/models/enums.js +208 -0
- package/dist-es/schemas/schemas_0.js +647 -59
- package/dist-types/GeoRoutes.d.ts +1 -1
- package/dist-types/GeoRoutesClient.d.ts +1 -1
- package/dist-types/commands/CalculateIsolinesCommand.d.ts +14 -14
- package/dist-types/commands/CalculateRouteMatrixCommand.d.ts +11 -11
- package/dist-types/commands/CalculateRoutesCommand.d.ts +698 -89
- package/dist-types/commands/OptimizeWaypointsCommand.d.ts +9 -9
- package/dist-types/commands/SnapToRoadsCommand.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/enums.d.ts +456 -0
- package/dist-types/models/models_0.d.ts +1783 -140
- package/dist-types/schemas/schemas_0.d.ts +58 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/ts3.4/models/enums.d.ts +269 -0
- package/dist-types/ts3.4/models/models_0.d.ts +425 -19
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
- package/package.json +8 -8
package/dist-es/endpoint/bdd.js
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
-
const
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "
|
|
2
|
+
const k = "ref";
|
|
3
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
4
|
const _data = {
|
|
5
5
|
conditions: [
|
|
6
|
-
[c, [
|
|
7
|
-
[c,
|
|
8
|
-
["aws.partition",
|
|
9
|
-
[e, [{ [
|
|
10
|
-
[
|
|
11
|
-
[f, [
|
|
12
|
-
[e, [{
|
|
13
|
-
[e, [{ fn: g, argv: [j, "supportsDualStack"] }, b]],
|
|
14
|
-
[e, [{ fn: g, argv: [j, "supportsFIPS"] }, b]]
|
|
6
|
+
[c, [g]],
|
|
7
|
+
[c, j],
|
|
8
|
+
["aws.partition", j, d],
|
|
9
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
15
13
|
],
|
|
16
14
|
results: [
|
|
17
15
|
[a],
|
|
18
16
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
19
17
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
20
|
-
[
|
|
21
|
-
["https://routes.
|
|
22
|
-
["https://routes.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
23
|
-
["https://routes.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", k],
|
|
24
|
-
["https://routes.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
25
|
-
["https://routes.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", k],
|
|
26
|
-
["https://routes.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
27
|
-
["https://routes.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", k],
|
|
28
|
-
["https://routes.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
29
|
-
["https://geo-routes-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
18
|
+
[g, i],
|
|
19
|
+
["https://geo-routes-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
30
20
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
31
|
-
["https://geo-routes-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
21
|
+
["https://geo-routes-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
32
22
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
33
|
-
["https://geo-routes.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
23
|
+
["https://geo-routes.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
34
24
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
35
|
-
["https://geo-routes.{Region}.{PartitionResult#dnsSuffix}",
|
|
25
|
+
["https://geo-routes.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
36
26
|
[a, "Invalid Configuration: Missing Region"]
|
|
37
27
|
]
|
|
38
28
|
};
|
|
@@ -40,25 +30,17 @@ const root = 2;
|
|
|
40
30
|
const r = 100_000_000;
|
|
41
31
|
const nodes = new Int32Array([
|
|
42
32
|
-1, 1, -1,
|
|
43
|
-
0,
|
|
44
|
-
1, 4, r +
|
|
45
|
-
2, 5, r +
|
|
46
|
-
3,
|
|
47
|
-
4,
|
|
48
|
-
5,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
6, r +
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
6, 16, 15,
|
|
56
|
-
8, r + 14, r + 15,
|
|
57
|
-
7, 17, r + 13,
|
|
58
|
-
8, r + 12, r + 13,
|
|
59
|
-
6, r + 9, r + 10,
|
|
60
|
-
6, r + 5, r + 6,
|
|
61
|
-
3, r + 1, 21,
|
|
62
|
-
6, r + 2, r + 3,
|
|
33
|
+
0, 12, 3,
|
|
34
|
+
1, 4, r + 11,
|
|
35
|
+
2, 5, r + 11,
|
|
36
|
+
3, 8, 6,
|
|
37
|
+
4, 7, r + 10,
|
|
38
|
+
5, r + 8, r + 9,
|
|
39
|
+
4, 10, 9,
|
|
40
|
+
6, r + 6, r + 7,
|
|
41
|
+
5, 11, r + 5,
|
|
42
|
+
6, r + 4, r + 5,
|
|
43
|
+
3, r + 1, 13,
|
|
44
|
+
4, r + 2, r + 3,
|
|
63
45
|
]);
|
|
64
46
|
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/dist-es/models/enums.js
CHANGED
|
@@ -115,8 +115,11 @@ export const MeasurementSystem = {
|
|
|
115
115
|
METRIC: "Metric",
|
|
116
116
|
};
|
|
117
117
|
export const RouteLegAdditionalFeature = {
|
|
118
|
+
BOOKINGS: "Bookings",
|
|
118
119
|
ELEVATION: "Elevation",
|
|
119
120
|
INCIDENTS: "Incidents",
|
|
121
|
+
INTERMEDIATE_STOPS: "IntermediateStops",
|
|
122
|
+
NEXT_DEPARTURES: "NextDepartures",
|
|
120
123
|
PASS_THROUGH_WAYPOINTS: "PassThroughWaypoints",
|
|
121
124
|
SUMMARY: "Summary",
|
|
122
125
|
TOLLS: "Tolls",
|
|
@@ -156,8 +159,10 @@ export const RouteTollVehicleCategory = {
|
|
|
156
159
|
};
|
|
157
160
|
export const RouteTravelMode = {
|
|
158
161
|
CAR: "Car",
|
|
162
|
+
INTERMODAL: "Intermodal",
|
|
159
163
|
PEDESTRIAN: "Pedestrian",
|
|
160
164
|
SCOOTER: "Scooter",
|
|
165
|
+
TRANSIT: "Transit",
|
|
161
166
|
TRUCK: "Truck",
|
|
162
167
|
};
|
|
163
168
|
export const RouteEngineType = {
|
|
@@ -165,6 +170,45 @@ export const RouteEngineType = {
|
|
|
165
170
|
INTERNAL_COMBUSTION: "InternalCombustion",
|
|
166
171
|
PLUGIN_HYBRID: "PluginHybrid",
|
|
167
172
|
};
|
|
173
|
+
export const RouteAccessibilityAttribute = {
|
|
174
|
+
WHEELCHAIR: "Wheelchair",
|
|
175
|
+
};
|
|
176
|
+
export const RouteRentalMode = {
|
|
177
|
+
ALL: "All",
|
|
178
|
+
CAR: "Car",
|
|
179
|
+
};
|
|
180
|
+
export const RouteIntermodalEnabledLegs = {
|
|
181
|
+
ENTIRE_ROUTE: "EntireRoute",
|
|
182
|
+
FIRST_LEG: "FirstLeg",
|
|
183
|
+
LAST_LEG: "LastLeg",
|
|
184
|
+
NONE: "None",
|
|
185
|
+
};
|
|
186
|
+
export const RouteTaxiMode = {
|
|
187
|
+
ALL: "All",
|
|
188
|
+
CAR: "Car",
|
|
189
|
+
};
|
|
190
|
+
export const RouteTransitMode = {
|
|
191
|
+
AERIAL_TRAMWAY: "AerialTramway",
|
|
192
|
+
AIRPLANE: "Airplane",
|
|
193
|
+
ALL: "All",
|
|
194
|
+
BUS: "Bus",
|
|
195
|
+
BUS_RAPID_TRANSIT: "BusRapidTransit",
|
|
196
|
+
CITY_TRAIN: "CityTrain",
|
|
197
|
+
FERRY: "Ferry",
|
|
198
|
+
FUNICULAR_RAILWAY: "FunicularRailway",
|
|
199
|
+
HIGH_SPEED_TRAIN: "HighSpeedTrain",
|
|
200
|
+
INTERCITY_TRAIN: "IntercityTrain",
|
|
201
|
+
INTERREGIONAL_TRAIN: "InterregionalTrain",
|
|
202
|
+
LIGHT_RAIL: "LightRail",
|
|
203
|
+
MONORAIL: "Monorail",
|
|
204
|
+
PRIVATE_BUS: "PrivateBus",
|
|
205
|
+
REGIONAL_TRAIN: "RegionalTrain",
|
|
206
|
+
SUBWAY: "Subway",
|
|
207
|
+
};
|
|
208
|
+
export const RouteVehicleMode = {
|
|
209
|
+
ALL: "All",
|
|
210
|
+
CAR: "Car",
|
|
211
|
+
};
|
|
168
212
|
export const RouteHazardousCargoType = {
|
|
169
213
|
COMBUSTIBLE: "Combustible",
|
|
170
214
|
CORROSIVE: "Corrosive",
|
|
@@ -189,7 +233,10 @@ export const RouteTravelStepType = {
|
|
|
189
233
|
};
|
|
190
234
|
export const RouteResponseNoticeCode = {
|
|
191
235
|
MAIN_LANGUAGE_NOT_FOUND: "MainLanguageNotFound",
|
|
236
|
+
NO_TRANSIT_STATIONS_FOUND: "NoTransitStationsFound",
|
|
192
237
|
OTHER: "Other",
|
|
238
|
+
TRANSIT_DATA_UNAVAILABLE: "TransitDataUnavailable",
|
|
239
|
+
TRANSIT_ROUTE_UNAVAILABLE: "TransitRouteUnavailable",
|
|
193
240
|
TRAVEL_TIME_EXCEEDS_DRIVER_WORK_HOURS: "TravelTimeExceedsDriverWorkHours",
|
|
194
241
|
};
|
|
195
242
|
export const RouteNoticeImpact = {
|
|
@@ -218,10 +265,25 @@ export const RouteFerryTravelStepType = {
|
|
|
218
265
|
CONTINUE: "Continue",
|
|
219
266
|
DEPART: "Depart",
|
|
220
267
|
};
|
|
268
|
+
export const RoutePedestrianAfterTravelStepType = {
|
|
269
|
+
WAIT: "Wait",
|
|
270
|
+
};
|
|
271
|
+
export const RouteAccessibilityAvailability = {
|
|
272
|
+
AVAILABLE: "Available",
|
|
273
|
+
LIMITED: "Limited",
|
|
274
|
+
UNAVAILABLE: "Unavailable",
|
|
275
|
+
UNKNOWN: "Unknown",
|
|
276
|
+
};
|
|
221
277
|
export const RouteSideOfStreet = {
|
|
222
278
|
LEFT: "Left",
|
|
223
279
|
RIGHT: "Right",
|
|
224
280
|
};
|
|
281
|
+
export const RoutePedestrianPlaceType = {
|
|
282
|
+
ACCESS_POINT: "AccessPoint",
|
|
283
|
+
DOCKING_STATION: "DockingStation",
|
|
284
|
+
PARKING_LOT: "ParkingLot",
|
|
285
|
+
STATION: "Station",
|
|
286
|
+
};
|
|
225
287
|
export const RoutePedestrianNoticeCode = {
|
|
226
288
|
ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable",
|
|
227
289
|
OTHER: "Other",
|
|
@@ -283,19 +345,165 @@ export const RoutePedestrianTravelStepType = {
|
|
|
283
345
|
ROUNDABOUT_PASS: "RoundaboutPass",
|
|
284
346
|
TURN: "Turn",
|
|
285
347
|
};
|
|
348
|
+
export const RouteRentalAfterTravelStepType = {
|
|
349
|
+
PARK: "Park",
|
|
350
|
+
};
|
|
351
|
+
export const RouteRentalPlaceType = {
|
|
352
|
+
ACCESS_POINT: "AccessPoint",
|
|
353
|
+
DOCKING_STATION: "DockingStation",
|
|
354
|
+
PARKING_LOT: "ParkingLot",
|
|
355
|
+
STATION: "Station",
|
|
356
|
+
};
|
|
357
|
+
export const RouteAttributionType = {
|
|
358
|
+
DISCLAIMER: "Disclaimer",
|
|
359
|
+
TARIFF: "Tariff",
|
|
360
|
+
};
|
|
361
|
+
export const RouteWebLinkDeviceType = {
|
|
362
|
+
ANDROID: "Android",
|
|
363
|
+
IOS: "Ios",
|
|
364
|
+
WEB: "Web",
|
|
365
|
+
};
|
|
366
|
+
export const RouteRentalBeforeTravelStepType = {
|
|
367
|
+
SETUP: "Setup",
|
|
368
|
+
};
|
|
369
|
+
export const RouteRentalTravelStepType = {
|
|
370
|
+
ARRIVE: "Arrive",
|
|
371
|
+
CONTINUE: "Continue",
|
|
372
|
+
DEPART: "Depart",
|
|
373
|
+
EXIT: "Exit",
|
|
374
|
+
KEEP: "Keep",
|
|
375
|
+
RAMP: "Ramp",
|
|
376
|
+
ROUNDABOUT_ENTER: "RoundaboutEnter",
|
|
377
|
+
ROUNDABOUT_EXIT: "RoundaboutExit",
|
|
378
|
+
ROUNDABOUT_PASS: "RoundaboutPass",
|
|
379
|
+
TURN: "Turn",
|
|
380
|
+
U_TURN: "UTurn",
|
|
381
|
+
};
|
|
382
|
+
export const RouteTaxiAfterTravelStepType = {
|
|
383
|
+
PARK: "Park",
|
|
384
|
+
};
|
|
385
|
+
export const RouteTaxiPlaceType = {
|
|
386
|
+
ACCESS_POINT: "AccessPoint",
|
|
387
|
+
STATION: "Station",
|
|
388
|
+
};
|
|
389
|
+
export const RouteTaxiBeforeTravelStepType = {
|
|
390
|
+
WAIT: "Wait",
|
|
391
|
+
};
|
|
392
|
+
export const RouteTaxiNoticeCode = {
|
|
393
|
+
ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable",
|
|
394
|
+
OTHER: "Other",
|
|
395
|
+
};
|
|
396
|
+
export const RouteTaxiTravelStepType = {
|
|
397
|
+
ARRIVE: "Arrive",
|
|
398
|
+
CONTINUE: "Continue",
|
|
399
|
+
DEPART: "Depart",
|
|
400
|
+
EXIT: "Exit",
|
|
401
|
+
KEEP: "Keep",
|
|
402
|
+
RAMP: "Ramp",
|
|
403
|
+
ROUNDABOUT_ENTER: "RoundaboutEnter",
|
|
404
|
+
ROUNDABOUT_EXIT: "RoundaboutExit",
|
|
405
|
+
ROUNDABOUT_PASS: "RoundaboutPass",
|
|
406
|
+
TURN: "Turn",
|
|
407
|
+
U_TURN: "UTurn",
|
|
408
|
+
};
|
|
409
|
+
export const RouteTransitAfterTravelStepType = {
|
|
410
|
+
DEBOARD: "Deboard",
|
|
411
|
+
};
|
|
412
|
+
export const RouteTransitPlaceType = {
|
|
413
|
+
STATION: "Station",
|
|
414
|
+
};
|
|
415
|
+
export const RouteTransitTripStatus = {
|
|
416
|
+
ADDED: "Added",
|
|
417
|
+
CANCELLED: "Cancelled",
|
|
418
|
+
REPLACED: "Replaced",
|
|
419
|
+
SCHEDULED: "Scheduled",
|
|
420
|
+
};
|
|
421
|
+
export const RouteTransitBeforeTravelStepType = {
|
|
422
|
+
BOARD: "Board",
|
|
423
|
+
};
|
|
424
|
+
export const RouteTransitIncidentEffect = {
|
|
425
|
+
DELAYED: "Delayed",
|
|
426
|
+
DETOURED: "Detoured",
|
|
427
|
+
OTHER: "Other",
|
|
428
|
+
SERVICE_ADDED: "ServiceAdded",
|
|
429
|
+
SERVICE_CANCELLED: "ServiceCancelled",
|
|
430
|
+
SERVICE_MODIFIED: "ServiceModified",
|
|
431
|
+
SERVICE_REDUCED: "ServiceReduced",
|
|
432
|
+
STOP_MOVED: "StopMoved",
|
|
433
|
+
};
|
|
434
|
+
export const RouteTransitIncidentType = {
|
|
435
|
+
ACCIDENT: "Accident",
|
|
436
|
+
CONSTRUCTION: "Construction",
|
|
437
|
+
DEMONSTRATION: "Demonstration",
|
|
438
|
+
HOLIDAY: "Holiday",
|
|
439
|
+
MAINTENANCE: "Maintenance",
|
|
440
|
+
MEDICAL_EMERGENCY: "MedicalEmergency",
|
|
441
|
+
OTHER: "Other",
|
|
442
|
+
POLICE_ACTIVITY: "PoliceActivity",
|
|
443
|
+
STRIKE: "Strike",
|
|
444
|
+
TECHNICAL_PROBLEM: "TechnicalProblem",
|
|
445
|
+
WEATHER: "Weather",
|
|
446
|
+
};
|
|
447
|
+
export const RouteTransitIntermediateStopAttribute = {
|
|
448
|
+
NO_ENTRY: "NoEntry",
|
|
449
|
+
NO_EXIT: "NoExit",
|
|
450
|
+
};
|
|
451
|
+
export const RouteTransitNoticeCode = {
|
|
452
|
+
ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable",
|
|
453
|
+
INTERMEDIATE_STOPS_UNAVAILABLE: "IntermediateStopsUnavailable",
|
|
454
|
+
NO_SCHEDULE: "NoSchedule",
|
|
455
|
+
OTHER: "Other",
|
|
456
|
+
POTENTIAL_VIOLATED_VEHICLE_RESTRICTION_USAGE: "PotentialViolatedVehicleRestrictionUsage",
|
|
457
|
+
SCHEDULED_TIMES: "ScheduledTimes",
|
|
458
|
+
SEASONAL_CLOSURE: "SeasonalClosure",
|
|
459
|
+
VIOLATED_AVOID_AREAS: "ViolatedAvoidAreas",
|
|
460
|
+
VIOLATED_AVOID_FERRY: "ViolatedAvoidFerry",
|
|
461
|
+
VIOLATED_AVOID_RAIL_FERRY: "ViolatedAvoidRailFerry",
|
|
462
|
+
VIOLATED_EXCLUDED_TRANSIT_MODE: "ViolatedExcludedTransitMode",
|
|
463
|
+
VIOLATED_VEHICLE_RESTRICTION: "ViolatedVehicleRestriction",
|
|
464
|
+
};
|
|
465
|
+
export const RouteTransitTravelStepType = {
|
|
466
|
+
DEPART: "Depart",
|
|
467
|
+
};
|
|
286
468
|
export const RouteLegTravelMode = {
|
|
469
|
+
AERIAL_TRAMWAY: "AerialTramway",
|
|
470
|
+
AIRPLANE: "Airplane",
|
|
471
|
+
BUS: "Bus",
|
|
472
|
+
BUS_RAPID_TRANSIT: "BusRapidTransit",
|
|
287
473
|
CAR: "Car",
|
|
288
474
|
CAR_SHUTTLE_TRAIN: "CarShuttleTrain",
|
|
475
|
+
CITY_TRAIN: "CityTrain",
|
|
289
476
|
FERRY: "Ferry",
|
|
477
|
+
FUNICULAR_RAILWAY: "FunicularRailway",
|
|
478
|
+
HIGH_SPEED_TRAIN: "HighSpeedTrain",
|
|
479
|
+
INTERCITY_TRAIN: "IntercityTrain",
|
|
480
|
+
INTERREGIONAL_TRAIN: "InterregionalTrain",
|
|
481
|
+
LIGHT_RAIL: "LightRail",
|
|
482
|
+
MONORAIL: "Monorail",
|
|
290
483
|
PEDESTRIAN: "Pedestrian",
|
|
484
|
+
PRIVATE_BUS: "PrivateBus",
|
|
485
|
+
REGIONAL_TRAIN: "RegionalTrain",
|
|
291
486
|
SCOOTER: "Scooter",
|
|
487
|
+
SUBWAY: "Subway",
|
|
292
488
|
TRUCK: "Truck",
|
|
293
489
|
};
|
|
294
490
|
export const RouteLegType = {
|
|
295
491
|
FERRY: "Ferry",
|
|
296
492
|
PEDESTRIAN: "Pedestrian",
|
|
493
|
+
RENTAL: "Rental",
|
|
494
|
+
TAXI: "Taxi",
|
|
495
|
+
TRANSIT: "Transit",
|
|
297
496
|
VEHICLE: "Vehicle",
|
|
298
497
|
};
|
|
498
|
+
export const RouteVehicleAfterTravelStepType = {
|
|
499
|
+
PARK: "Park",
|
|
500
|
+
};
|
|
501
|
+
export const RouteVehiclePlaceType = {
|
|
502
|
+
ACCESS_POINT: "AccessPoint",
|
|
503
|
+
DOCKING_STATION: "DockingStation",
|
|
504
|
+
PARKING_LOT: "ParkingLot",
|
|
505
|
+
STATION: "Station",
|
|
506
|
+
};
|
|
299
507
|
export const RouteVehicleIncidentSeverity = {
|
|
300
508
|
CRITICAL: "Critical",
|
|
301
509
|
HIGH: "High",
|