@aws-sdk/client-geo-routes 3.683.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/LICENSE +201 -0
- package/README.md +265 -0
- package/dist-cjs/GeoRoutes.js +21 -0
- package/dist-cjs/GeoRoutesClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CalculateIsolinesCommand.js +27 -0
- package/dist-cjs/commands/CalculateRouteMatrixCommand.js +27 -0
- package/dist-cjs/commands/CalculateRoutesCommand.js +27 -0
- package/dist-cjs/commands/OptimizeWaypointsCommand.js +27 -0
- package/dist-cjs/commands/SnapToRoadsCommand.js +27 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/GeoRoutesServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +1009 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1529 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/GeoRoutes.js +17 -0
- package/dist-es/GeoRoutesClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CalculateIsolinesCommand.js +23 -0
- package/dist-es/commands/CalculateRouteMatrixCommand.js +23 -0
- package/dist-es/commands/CalculateRoutesCommand.js +23 -0
- package/dist-es/commands/OptimizeWaypointsCommand.js +23 -0
- package/dist-es/commands/SnapToRoadsCommand.js +23 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/GeoRoutesServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +927 -0
- package/dist-es/protocols/Aws_restJson1.js +1516 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/GeoRoutes.d.ts +65 -0
- package/dist-types/GeoRoutesClient.d.ts +194 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CalculateIsolinesCommand.d.ts +315 -0
- package/dist-types/commands/CalculateRouteMatrixCommand.d.ts +281 -0
- package/dist-types/commands/CalculateRoutesCommand.d.ts +969 -0
- package/dist-types/commands/OptimizeWaypointsCommand.d.ts +251 -0
- package/dist-types/commands/SnapToRoadsCommand.d.ts +140 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +33 -0
- package/dist-types/models/GeoRoutesServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +7597 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/GeoRoutes.d.ts +90 -0
- package/dist-types/ts3.4/GeoRoutesClient.d.ts +148 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/CalculateIsolinesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CalculateRouteMatrixCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CalculateRoutesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/OptimizeWaypointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SnapToRoadsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +8 -0
- package/dist-types/ts3.4/models/GeoRoutesServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2022 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +65 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GeoRoutesClient";
|
|
4
|
+
import { CalculateIsolinesRequest, CalculateIsolinesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CalculateIsolinesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CalculateIsolinesCommandInput extends CalculateIsolinesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CalculateIsolinesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CalculateIsolinesCommandOutput extends CalculateIsolinesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CalculateIsolinesCommand_base: {
|
|
25
|
+
new (input: CalculateIsolinesCommandInput): import("@smithy/smithy-client").CommandImpl<CalculateIsolinesCommandInput, CalculateIsolinesCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CalculateIsolinesCommandInput): import("@smithy/smithy-client").CommandImpl<CalculateIsolinesCommandInput, CalculateIsolinesCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Use the <code>CalculateIsolines</code> action to find service areas that can be reached
|
|
31
|
+
* in a given threshold of time, distance.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { GeoRoutesClient, CalculateIsolinesCommand } from "@aws-sdk/client-geo-routes"; // ES Modules import
|
|
36
|
+
* // const { GeoRoutesClient, CalculateIsolinesCommand } = require("@aws-sdk/client-geo-routes"); // CommonJS import
|
|
37
|
+
* const client = new GeoRoutesClient(config);
|
|
38
|
+
* const input = { // CalculateIsolinesRequest
|
|
39
|
+
* Allow: { // IsolineAllowOptions
|
|
40
|
+
* Hot: true || false,
|
|
41
|
+
* Hov: true || false,
|
|
42
|
+
* },
|
|
43
|
+
* ArrivalTime: "STRING_VALUE",
|
|
44
|
+
* Avoid: { // IsolineAvoidanceOptions
|
|
45
|
+
* Areas: [ // IsolineAvoidanceAreaList
|
|
46
|
+
* { // IsolineAvoidanceArea
|
|
47
|
+
* Except: [ // IsolineAvoidanceAreaGeometryList
|
|
48
|
+
* { // IsolineAvoidanceAreaGeometry
|
|
49
|
+
* BoundingBox: [ // BoundingBox
|
|
50
|
+
* Number("double"),
|
|
51
|
+
* ],
|
|
52
|
+
* Corridor: { // Corridor
|
|
53
|
+
* LineString: [ // LineString // required
|
|
54
|
+
* [ // Position
|
|
55
|
+
* Number("double"),
|
|
56
|
+
* ],
|
|
57
|
+
* ],
|
|
58
|
+
* Radius: Number("int"), // required
|
|
59
|
+
* },
|
|
60
|
+
* Polygon: [ // LinearRings
|
|
61
|
+
* [ // LinearRing
|
|
62
|
+
* [
|
|
63
|
+
* Number("double"),
|
|
64
|
+
* ],
|
|
65
|
+
* ],
|
|
66
|
+
* ],
|
|
67
|
+
* PolylineCorridor: { // PolylineCorridor
|
|
68
|
+
* Polyline: "STRING_VALUE", // required
|
|
69
|
+
* Radius: Number("int"), // required
|
|
70
|
+
* },
|
|
71
|
+
* PolylinePolygon: [ // PolylineRingList
|
|
72
|
+
* "STRING_VALUE",
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* Geometry: {
|
|
77
|
+
* BoundingBox: [
|
|
78
|
+
* Number("double"),
|
|
79
|
+
* ],
|
|
80
|
+
* Corridor: {
|
|
81
|
+
* LineString: [ // required
|
|
82
|
+
* [
|
|
83
|
+
* Number("double"),
|
|
84
|
+
* ],
|
|
85
|
+
* ],
|
|
86
|
+
* Radius: Number("int"), // required
|
|
87
|
+
* },
|
|
88
|
+
* Polygon: [
|
|
89
|
+
* [
|
|
90
|
+
* [
|
|
91
|
+
* Number("double"),
|
|
92
|
+
* ],
|
|
93
|
+
* ],
|
|
94
|
+
* ],
|
|
95
|
+
* PolylineCorridor: {
|
|
96
|
+
* Polyline: "STRING_VALUE", // required
|
|
97
|
+
* Radius: Number("int"), // required
|
|
98
|
+
* },
|
|
99
|
+
* PolylinePolygon: [
|
|
100
|
+
* "STRING_VALUE",
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* ],
|
|
105
|
+
* CarShuttleTrains: true || false,
|
|
106
|
+
* ControlledAccessHighways: true || false,
|
|
107
|
+
* DirtRoads: true || false,
|
|
108
|
+
* Ferries: true || false,
|
|
109
|
+
* SeasonalClosure: true || false,
|
|
110
|
+
* TollRoads: true || false,
|
|
111
|
+
* TollTransponders: true || false,
|
|
112
|
+
* TruckRoadTypes: [ // TruckRoadTypeList
|
|
113
|
+
* "STRING_VALUE",
|
|
114
|
+
* ],
|
|
115
|
+
* Tunnels: true || false,
|
|
116
|
+
* UTurns: true || false,
|
|
117
|
+
* ZoneCategories: [ // IsolineAvoidanceZoneCategoryList
|
|
118
|
+
* { // IsolineAvoidanceZoneCategory
|
|
119
|
+
* Category: "STRING_VALUE",
|
|
120
|
+
* },
|
|
121
|
+
* ],
|
|
122
|
+
* },
|
|
123
|
+
* DepartNow: true || false,
|
|
124
|
+
* DepartureTime: "STRING_VALUE",
|
|
125
|
+
* Destination: "<Position>",
|
|
126
|
+
* DestinationOptions: { // IsolineDestinationOptions
|
|
127
|
+
* AvoidActionsForDistance: Number("long"),
|
|
128
|
+
* Heading: Number("double"),
|
|
129
|
+
* Matching: { // IsolineMatchingOptions
|
|
130
|
+
* NameHint: "STRING_VALUE",
|
|
131
|
+
* OnRoadThreshold: Number("long"),
|
|
132
|
+
* Radius: Number("long"),
|
|
133
|
+
* Strategy: "STRING_VALUE",
|
|
134
|
+
* },
|
|
135
|
+
* SideOfStreet: { // IsolineSideOfStreetOptions
|
|
136
|
+
* Position: "<Position>", // required
|
|
137
|
+
* UseWith: "STRING_VALUE",
|
|
138
|
+
* },
|
|
139
|
+
* },
|
|
140
|
+
* IsolineGeometryFormat: "STRING_VALUE",
|
|
141
|
+
* IsolineGranularity: { // IsolineGranularityOptions
|
|
142
|
+
* MaxPoints: Number("int"),
|
|
143
|
+
* MaxResolution: Number("long"),
|
|
144
|
+
* },
|
|
145
|
+
* Key: "STRING_VALUE",
|
|
146
|
+
* OptimizeIsolineFor: "STRING_VALUE",
|
|
147
|
+
* OptimizeRoutingFor: "STRING_VALUE",
|
|
148
|
+
* Origin: "<Position>",
|
|
149
|
+
* OriginOptions: { // IsolineOriginOptions
|
|
150
|
+
* AvoidActionsForDistance: Number("long"),
|
|
151
|
+
* Heading: Number("double"),
|
|
152
|
+
* Matching: {
|
|
153
|
+
* NameHint: "STRING_VALUE",
|
|
154
|
+
* OnRoadThreshold: Number("long"),
|
|
155
|
+
* Radius: Number("long"),
|
|
156
|
+
* Strategy: "STRING_VALUE",
|
|
157
|
+
* },
|
|
158
|
+
* SideOfStreet: {
|
|
159
|
+
* Position: "<Position>", // required
|
|
160
|
+
* UseWith: "STRING_VALUE",
|
|
161
|
+
* },
|
|
162
|
+
* },
|
|
163
|
+
* Thresholds: { // IsolineThresholds
|
|
164
|
+
* Distance: [ // DistanceThresholdList
|
|
165
|
+
* Number("long"),
|
|
166
|
+
* ],
|
|
167
|
+
* Time: [ // TimeThresholdList
|
|
168
|
+
* Number("long"),
|
|
169
|
+
* ],
|
|
170
|
+
* },
|
|
171
|
+
* Traffic: { // IsolineTrafficOptions
|
|
172
|
+
* FlowEventThresholdOverride: Number("long"),
|
|
173
|
+
* Usage: "STRING_VALUE",
|
|
174
|
+
* },
|
|
175
|
+
* TravelMode: "STRING_VALUE",
|
|
176
|
+
* TravelModeOptions: { // IsolineTravelModeOptions
|
|
177
|
+
* Car: { // IsolineCarOptions
|
|
178
|
+
* EngineType: "STRING_VALUE",
|
|
179
|
+
* LicensePlate: { // IsolineVehicleLicensePlate
|
|
180
|
+
* LastCharacter: "STRING_VALUE",
|
|
181
|
+
* },
|
|
182
|
+
* MaxSpeed: Number("double"),
|
|
183
|
+
* Occupancy: Number("int"),
|
|
184
|
+
* },
|
|
185
|
+
* Scooter: { // IsolineScooterOptions
|
|
186
|
+
* EngineType: "STRING_VALUE",
|
|
187
|
+
* LicensePlate: {
|
|
188
|
+
* LastCharacter: "STRING_VALUE",
|
|
189
|
+
* },
|
|
190
|
+
* MaxSpeed: Number("double"),
|
|
191
|
+
* Occupancy: Number("int"),
|
|
192
|
+
* },
|
|
193
|
+
* Truck: { // IsolineTruckOptions
|
|
194
|
+
* AxleCount: Number("int"),
|
|
195
|
+
* EngineType: "STRING_VALUE",
|
|
196
|
+
* GrossWeight: Number("long"),
|
|
197
|
+
* HazardousCargos: [ // IsolineHazardousCargoTypeList
|
|
198
|
+
* "STRING_VALUE",
|
|
199
|
+
* ],
|
|
200
|
+
* Height: Number("long"),
|
|
201
|
+
* HeightAboveFirstAxle: Number("long"),
|
|
202
|
+
* KpraLength: Number("long"),
|
|
203
|
+
* Length: Number("long"),
|
|
204
|
+
* LicensePlate: {
|
|
205
|
+
* LastCharacter: "STRING_VALUE",
|
|
206
|
+
* },
|
|
207
|
+
* MaxSpeed: Number("double"),
|
|
208
|
+
* Occupancy: Number("int"),
|
|
209
|
+
* PayloadCapacity: Number("long"),
|
|
210
|
+
* TireCount: Number("int"),
|
|
211
|
+
* Trailer: { // IsolineTrailerOptions
|
|
212
|
+
* AxleCount: Number("int"),
|
|
213
|
+
* TrailerCount: Number("int"),
|
|
214
|
+
* },
|
|
215
|
+
* TruckType: "STRING_VALUE",
|
|
216
|
+
* TunnelRestrictionCode: "STRING_VALUE",
|
|
217
|
+
* WeightPerAxle: Number("long"),
|
|
218
|
+
* WeightPerAxleGroup: { // WeightPerAxleGroup
|
|
219
|
+
* Single: Number("long"),
|
|
220
|
+
* Tandem: Number("long"),
|
|
221
|
+
* Triple: Number("long"),
|
|
222
|
+
* Quad: Number("long"),
|
|
223
|
+
* Quint: Number("long"),
|
|
224
|
+
* },
|
|
225
|
+
* Width: Number("long"),
|
|
226
|
+
* },
|
|
227
|
+
* },
|
|
228
|
+
* };
|
|
229
|
+
* const command = new CalculateIsolinesCommand(input);
|
|
230
|
+
* const response = await client.send(command);
|
|
231
|
+
* // { // CalculateIsolinesResponse
|
|
232
|
+
* // ArrivalTime: "STRING_VALUE",
|
|
233
|
+
* // DepartureTime: "STRING_VALUE",
|
|
234
|
+
* // IsolineGeometryFormat: "STRING_VALUE", // required
|
|
235
|
+
* // Isolines: [ // IsolineList // required
|
|
236
|
+
* // { // Isoline
|
|
237
|
+
* // Connections: [ // IsolineConnectionList // required
|
|
238
|
+
* // { // IsolineConnection
|
|
239
|
+
* // FromPolygonIndex: Number("int"), // required
|
|
240
|
+
* // Geometry: { // IsolineConnectionGeometry
|
|
241
|
+
* // LineString: [ // LineString
|
|
242
|
+
* // [ // Position
|
|
243
|
+
* // Number("double"),
|
|
244
|
+
* // ],
|
|
245
|
+
* // ],
|
|
246
|
+
* // Polyline: "STRING_VALUE",
|
|
247
|
+
* // },
|
|
248
|
+
* // ToPolygonIndex: Number("int"), // required
|
|
249
|
+
* // },
|
|
250
|
+
* // ],
|
|
251
|
+
* // DistanceThreshold: Number("long"),
|
|
252
|
+
* // Geometries: [ // IsolineShapeGeometryList // required
|
|
253
|
+
* // { // IsolineShapeGeometry
|
|
254
|
+
* // Polygon: [ // LinearRings
|
|
255
|
+
* // [ // LinearRing
|
|
256
|
+
* // [
|
|
257
|
+
* // Number("double"),
|
|
258
|
+
* // ],
|
|
259
|
+
* // ],
|
|
260
|
+
* // ],
|
|
261
|
+
* // PolylinePolygon: [ // PolylineRingList
|
|
262
|
+
* // "STRING_VALUE",
|
|
263
|
+
* // ],
|
|
264
|
+
* // },
|
|
265
|
+
* // ],
|
|
266
|
+
* // TimeThreshold: Number("long"),
|
|
267
|
+
* // },
|
|
268
|
+
* // ],
|
|
269
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
270
|
+
* // SnappedDestination: [
|
|
271
|
+
* // Number("double"),
|
|
272
|
+
* // ],
|
|
273
|
+
* // SnappedOrigin: [
|
|
274
|
+
* // Number("double"),
|
|
275
|
+
* // ],
|
|
276
|
+
* // };
|
|
277
|
+
*
|
|
278
|
+
* ```
|
|
279
|
+
*
|
|
280
|
+
* @param CalculateIsolinesCommandInput - {@link CalculateIsolinesCommandInput}
|
|
281
|
+
* @returns {@link CalculateIsolinesCommandOutput}
|
|
282
|
+
* @see {@link CalculateIsolinesCommandInput} for command's `input` shape.
|
|
283
|
+
* @see {@link CalculateIsolinesCommandOutput} for command's `response` shape.
|
|
284
|
+
* @see {@link GeoRoutesClientResolvedConfig | config} for GeoRoutesClient's `config` shape.
|
|
285
|
+
*
|
|
286
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
287
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
288
|
+
*
|
|
289
|
+
* @throws {@link InternalServerException} (server fault)
|
|
290
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
291
|
+
*
|
|
292
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
293
|
+
* <p>The request was denied due to request throttling.</p>
|
|
294
|
+
*
|
|
295
|
+
* @throws {@link ValidationException} (client fault)
|
|
296
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
297
|
+
*
|
|
298
|
+
* @throws {@link GeoRoutesServiceException}
|
|
299
|
+
* <p>Base exception class for all service exceptions from GeoRoutes service.</p>
|
|
300
|
+
*
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
export declare class CalculateIsolinesCommand extends CalculateIsolinesCommand_base {
|
|
304
|
+
/** @internal type navigation helper, not in runtime. */
|
|
305
|
+
protected static __types: {
|
|
306
|
+
api: {
|
|
307
|
+
input: CalculateIsolinesRequest;
|
|
308
|
+
output: CalculateIsolinesResponse;
|
|
309
|
+
};
|
|
310
|
+
sdk: {
|
|
311
|
+
input: CalculateIsolinesCommandInput;
|
|
312
|
+
output: CalculateIsolinesCommandOutput;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GeoRoutesClient";
|
|
4
|
+
import { CalculateRouteMatrixRequest, CalculateRouteMatrixResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CalculateRouteMatrixCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CalculateRouteMatrixCommandInput extends CalculateRouteMatrixRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CalculateRouteMatrixCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CalculateRouteMatrixCommand_base: {
|
|
25
|
+
new (input: CalculateRouteMatrixCommandInput): import("@smithy/smithy-client").CommandImpl<CalculateRouteMatrixCommandInput, CalculateRouteMatrixCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CalculateRouteMatrixCommandInput): import("@smithy/smithy-client").CommandImpl<CalculateRouteMatrixCommandInput, CalculateRouteMatrixCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Calculates route matrix containing the results for all pairs of
|
|
31
|
+
* Origins to Destinations. Each row corresponds to one entry in Origins.
|
|
32
|
+
* Each entry in the row corresponds to the route from that entry in Origins to an entry in Destinations positions.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { GeoRoutesClient, CalculateRouteMatrixCommand } from "@aws-sdk/client-geo-routes"; // ES Modules import
|
|
37
|
+
* // const { GeoRoutesClient, CalculateRouteMatrixCommand } = require("@aws-sdk/client-geo-routes"); // CommonJS import
|
|
38
|
+
* const client = new GeoRoutesClient(config);
|
|
39
|
+
* const input = { // CalculateRouteMatrixRequest
|
|
40
|
+
* Allow: { // RouteMatrixAllowOptions
|
|
41
|
+
* Hot: true || false,
|
|
42
|
+
* Hov: true || false,
|
|
43
|
+
* },
|
|
44
|
+
* Avoid: { // RouteMatrixAvoidanceOptions
|
|
45
|
+
* Areas: [ // RouteMatrixAvoidanceAreaList
|
|
46
|
+
* { // RouteMatrixAvoidanceArea
|
|
47
|
+
* Geometry: { // RouteMatrixAvoidanceAreaGeometry
|
|
48
|
+
* BoundingBox: [ // BoundingBox
|
|
49
|
+
* Number("double"),
|
|
50
|
+
* ],
|
|
51
|
+
* Polygon: [ // LinearRings
|
|
52
|
+
* [ // LinearRing
|
|
53
|
+
* [ // Position
|
|
54
|
+
* Number("double"),
|
|
55
|
+
* ],
|
|
56
|
+
* ],
|
|
57
|
+
* ],
|
|
58
|
+
* PolylinePolygon: [ // PolylineRingList
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* CarShuttleTrains: true || false,
|
|
65
|
+
* ControlledAccessHighways: true || false,
|
|
66
|
+
* DirtRoads: true || false,
|
|
67
|
+
* Ferries: true || false,
|
|
68
|
+
* TollRoads: true || false,
|
|
69
|
+
* TollTransponders: true || false,
|
|
70
|
+
* TruckRoadTypes: [ // TruckRoadTypeList
|
|
71
|
+
* "STRING_VALUE",
|
|
72
|
+
* ],
|
|
73
|
+
* Tunnels: true || false,
|
|
74
|
+
* UTurns: true || false,
|
|
75
|
+
* ZoneCategories: [ // RouteMatrixAvoidanceZoneCategoryList
|
|
76
|
+
* { // RouteMatrixAvoidanceZoneCategory
|
|
77
|
+
* Category: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* },
|
|
81
|
+
* DepartNow: true || false,
|
|
82
|
+
* DepartureTime: "STRING_VALUE",
|
|
83
|
+
* Destinations: [ // RouteMatrixDestinationList // required
|
|
84
|
+
* { // RouteMatrixDestination
|
|
85
|
+
* Options: { // RouteMatrixDestinationOptions
|
|
86
|
+
* AvoidActionsForDistance: Number("long"),
|
|
87
|
+
* Heading: Number("double"),
|
|
88
|
+
* Matching: { // RouteMatrixMatchingOptions
|
|
89
|
+
* NameHint: "STRING_VALUE",
|
|
90
|
+
* OnRoadThreshold: Number("long"),
|
|
91
|
+
* Radius: Number("long"),
|
|
92
|
+
* Strategy: "STRING_VALUE",
|
|
93
|
+
* },
|
|
94
|
+
* SideOfStreet: { // RouteMatrixSideOfStreetOptions
|
|
95
|
+
* Position: [ // required
|
|
96
|
+
* Number("double"),
|
|
97
|
+
* ],
|
|
98
|
+
* UseWith: "STRING_VALUE",
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* Position: "<Position>", // required
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* Exclude: { // RouteMatrixExclusionOptions
|
|
105
|
+
* Countries: [ // CountryCodeList // required
|
|
106
|
+
* "STRING_VALUE",
|
|
107
|
+
* ],
|
|
108
|
+
* },
|
|
109
|
+
* Key: "STRING_VALUE",
|
|
110
|
+
* OptimizeRoutingFor: "STRING_VALUE",
|
|
111
|
+
* Origins: [ // RouteMatrixOriginList // required
|
|
112
|
+
* { // RouteMatrixOrigin
|
|
113
|
+
* Options: { // RouteMatrixOriginOptions
|
|
114
|
+
* AvoidActionsForDistance: Number("long"),
|
|
115
|
+
* Heading: Number("double"),
|
|
116
|
+
* Matching: {
|
|
117
|
+
* NameHint: "STRING_VALUE",
|
|
118
|
+
* OnRoadThreshold: Number("long"),
|
|
119
|
+
* Radius: Number("long"),
|
|
120
|
+
* Strategy: "STRING_VALUE",
|
|
121
|
+
* },
|
|
122
|
+
* SideOfStreet: {
|
|
123
|
+
* Position: "<Position>", // required
|
|
124
|
+
* UseWith: "STRING_VALUE",
|
|
125
|
+
* },
|
|
126
|
+
* },
|
|
127
|
+
* Position: "<Position>", // required
|
|
128
|
+
* },
|
|
129
|
+
* ],
|
|
130
|
+
* RoutingBoundary: { // RouteMatrixBoundary
|
|
131
|
+
* Geometry: { // RouteMatrixBoundaryGeometry
|
|
132
|
+
* AutoCircle: { // RouteMatrixAutoCircle
|
|
133
|
+
* Margin: Number("long"),
|
|
134
|
+
* MaxRadius: Number("long"),
|
|
135
|
+
* },
|
|
136
|
+
* Circle: { // Circle
|
|
137
|
+
* Center: "<Position>", // required
|
|
138
|
+
* Radius: Number("double"), // required
|
|
139
|
+
* },
|
|
140
|
+
* BoundingBox: [
|
|
141
|
+
* Number("double"),
|
|
142
|
+
* ],
|
|
143
|
+
* Polygon: [
|
|
144
|
+
* [
|
|
145
|
+
* "<Position>",
|
|
146
|
+
* ],
|
|
147
|
+
* ],
|
|
148
|
+
* },
|
|
149
|
+
* Unbounded: true || false,
|
|
150
|
+
* },
|
|
151
|
+
* Traffic: { // RouteMatrixTrafficOptions
|
|
152
|
+
* FlowEventThresholdOverride: Number("long"),
|
|
153
|
+
* Usage: "STRING_VALUE",
|
|
154
|
+
* },
|
|
155
|
+
* TravelMode: "STRING_VALUE",
|
|
156
|
+
* TravelModeOptions: { // RouteMatrixTravelModeOptions
|
|
157
|
+
* Car: { // RouteMatrixCarOptions
|
|
158
|
+
* LicensePlate: { // RouteMatrixVehicleLicensePlate
|
|
159
|
+
* LastCharacter: "STRING_VALUE",
|
|
160
|
+
* },
|
|
161
|
+
* MaxSpeed: Number("double"),
|
|
162
|
+
* Occupancy: Number("int"),
|
|
163
|
+
* },
|
|
164
|
+
* Scooter: { // RouteMatrixScooterOptions
|
|
165
|
+
* LicensePlate: {
|
|
166
|
+
* LastCharacter: "STRING_VALUE",
|
|
167
|
+
* },
|
|
168
|
+
* MaxSpeed: Number("double"),
|
|
169
|
+
* Occupancy: Number("int"),
|
|
170
|
+
* },
|
|
171
|
+
* Truck: { // RouteMatrixTruckOptions
|
|
172
|
+
* AxleCount: Number("int"),
|
|
173
|
+
* GrossWeight: Number("long"),
|
|
174
|
+
* HazardousCargos: [ // RouteMatrixHazardousCargoTypeList
|
|
175
|
+
* "STRING_VALUE",
|
|
176
|
+
* ],
|
|
177
|
+
* Height: Number("long"),
|
|
178
|
+
* KpraLength: Number("long"),
|
|
179
|
+
* Length: Number("long"),
|
|
180
|
+
* LicensePlate: {
|
|
181
|
+
* LastCharacter: "STRING_VALUE",
|
|
182
|
+
* },
|
|
183
|
+
* MaxSpeed: Number("double"),
|
|
184
|
+
* Occupancy: Number("int"),
|
|
185
|
+
* PayloadCapacity: Number("long"),
|
|
186
|
+
* Trailer: { // RouteMatrixTrailerOptions
|
|
187
|
+
* TrailerCount: Number("int"),
|
|
188
|
+
* },
|
|
189
|
+
* TruckType: "STRING_VALUE",
|
|
190
|
+
* TunnelRestrictionCode: "STRING_VALUE",
|
|
191
|
+
* WeightPerAxle: Number("long"),
|
|
192
|
+
* WeightPerAxleGroup: { // WeightPerAxleGroup
|
|
193
|
+
* Single: Number("long"),
|
|
194
|
+
* Tandem: Number("long"),
|
|
195
|
+
* Triple: Number("long"),
|
|
196
|
+
* Quad: Number("long"),
|
|
197
|
+
* Quint: Number("long"),
|
|
198
|
+
* },
|
|
199
|
+
* Width: Number("long"),
|
|
200
|
+
* },
|
|
201
|
+
* },
|
|
202
|
+
* };
|
|
203
|
+
* const command = new CalculateRouteMatrixCommand(input);
|
|
204
|
+
* const response = await client.send(command);
|
|
205
|
+
* // { // CalculateRouteMatrixResponse
|
|
206
|
+
* // ErrorCount: Number("int"), // required
|
|
207
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
208
|
+
* // RouteMatrix: [ // RouteMatrix // required
|
|
209
|
+
* // [ // RouteMatrixRow
|
|
210
|
+
* // { // RouteMatrixEntry
|
|
211
|
+
* // Distance: Number("long"), // required
|
|
212
|
+
* // Duration: Number("long"), // required
|
|
213
|
+
* // Error: "STRING_VALUE",
|
|
214
|
+
* // },
|
|
215
|
+
* // ],
|
|
216
|
+
* // ],
|
|
217
|
+
* // RoutingBoundary: { // RouteMatrixBoundary
|
|
218
|
+
* // Geometry: { // RouteMatrixBoundaryGeometry
|
|
219
|
+
* // AutoCircle: { // RouteMatrixAutoCircle
|
|
220
|
+
* // Margin: Number("long"),
|
|
221
|
+
* // MaxRadius: Number("long"),
|
|
222
|
+
* // },
|
|
223
|
+
* // Circle: { // Circle
|
|
224
|
+
* // Center: [ // Position // required
|
|
225
|
+
* // Number("double"),
|
|
226
|
+
* // ],
|
|
227
|
+
* // Radius: Number("double"), // required
|
|
228
|
+
* // },
|
|
229
|
+
* // BoundingBox: [ // BoundingBox
|
|
230
|
+
* // Number("double"),
|
|
231
|
+
* // ],
|
|
232
|
+
* // Polygon: [ // LinearRings
|
|
233
|
+
* // [ // LinearRing
|
|
234
|
+
* // [
|
|
235
|
+
* // Number("double"),
|
|
236
|
+
* // ],
|
|
237
|
+
* // ],
|
|
238
|
+
* // ],
|
|
239
|
+
* // },
|
|
240
|
+
* // Unbounded: true || false,
|
|
241
|
+
* // },
|
|
242
|
+
* // };
|
|
243
|
+
*
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* @param CalculateRouteMatrixCommandInput - {@link CalculateRouteMatrixCommandInput}
|
|
247
|
+
* @returns {@link CalculateRouteMatrixCommandOutput}
|
|
248
|
+
* @see {@link CalculateRouteMatrixCommandInput} for command's `input` shape.
|
|
249
|
+
* @see {@link CalculateRouteMatrixCommandOutput} for command's `response` shape.
|
|
250
|
+
* @see {@link GeoRoutesClientResolvedConfig | config} for GeoRoutesClient's `config` shape.
|
|
251
|
+
*
|
|
252
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
253
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
254
|
+
*
|
|
255
|
+
* @throws {@link InternalServerException} (server fault)
|
|
256
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
257
|
+
*
|
|
258
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
259
|
+
* <p>The request was denied due to request throttling.</p>
|
|
260
|
+
*
|
|
261
|
+
* @throws {@link ValidationException} (client fault)
|
|
262
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link GeoRoutesServiceException}
|
|
265
|
+
* <p>Base exception class for all service exceptions from GeoRoutes service.</p>
|
|
266
|
+
*
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
export declare class CalculateRouteMatrixCommand extends CalculateRouteMatrixCommand_base {
|
|
270
|
+
/** @internal type navigation helper, not in runtime. */
|
|
271
|
+
protected static __types: {
|
|
272
|
+
api: {
|
|
273
|
+
input: CalculateRouteMatrixRequest;
|
|
274
|
+
output: CalculateRouteMatrixResponse;
|
|
275
|
+
};
|
|
276
|
+
sdk: {
|
|
277
|
+
input: CalculateRouteMatrixCommandInput;
|
|
278
|
+
output: CalculateRouteMatrixCommandOutput;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
}
|