@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,251 @@
|
|
|
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 { OptimizeWaypointsRequest, OptimizeWaypointsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link OptimizeWaypointsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface OptimizeWaypointsCommandInput extends OptimizeWaypointsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link OptimizeWaypointsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface OptimizeWaypointsCommandOutput extends OptimizeWaypointsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const OptimizeWaypointsCommand_base: {
|
|
25
|
+
new (input: OptimizeWaypointsCommandInput): import("@smithy/smithy-client").CommandImpl<OptimizeWaypointsCommandInput, OptimizeWaypointsCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: OptimizeWaypointsCommandInput): import("@smithy/smithy-client").CommandImpl<OptimizeWaypointsCommandInput, OptimizeWaypointsCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Calculates the optimal order to travel between a set of waypoints to minimize either the
|
|
31
|
+
* travel time or the distance travelled during the journey, based on road network
|
|
32
|
+
* restrictions and the traffic pattern data.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { GeoRoutesClient, OptimizeWaypointsCommand } from "@aws-sdk/client-geo-routes"; // ES Modules import
|
|
37
|
+
* // const { GeoRoutesClient, OptimizeWaypointsCommand } = require("@aws-sdk/client-geo-routes"); // CommonJS import
|
|
38
|
+
* const client = new GeoRoutesClient(config);
|
|
39
|
+
* const input = { // OptimizeWaypointsRequest
|
|
40
|
+
* Avoid: { // WaypointOptimizationAvoidanceOptions
|
|
41
|
+
* Areas: [ // WaypointOptimizationAvoidanceAreaList
|
|
42
|
+
* { // WaypointOptimizationAvoidanceArea
|
|
43
|
+
* Geometry: { // WaypointOptimizationAvoidanceAreaGeometry
|
|
44
|
+
* BoundingBox: [ // BoundingBox
|
|
45
|
+
* Number("double"),
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* CarShuttleTrains: true || false,
|
|
51
|
+
* ControlledAccessHighways: true || false,
|
|
52
|
+
* DirtRoads: true || false,
|
|
53
|
+
* Ferries: true || false,
|
|
54
|
+
* TollRoads: true || false,
|
|
55
|
+
* Tunnels: true || false,
|
|
56
|
+
* UTurns: true || false,
|
|
57
|
+
* },
|
|
58
|
+
* DepartureTime: "STRING_VALUE",
|
|
59
|
+
* Destination: [ // Position
|
|
60
|
+
* Number("double"),
|
|
61
|
+
* ],
|
|
62
|
+
* DestinationOptions: { // WaypointOptimizationDestinationOptions
|
|
63
|
+
* AccessHours: { // WaypointOptimizationAccessHours
|
|
64
|
+
* From: { // WaypointOptimizationAccessHoursEntry
|
|
65
|
+
* DayOfWeek: "STRING_VALUE", // required
|
|
66
|
+
* TimeOfDay: "STRING_VALUE", // required
|
|
67
|
+
* },
|
|
68
|
+
* To: {
|
|
69
|
+
* DayOfWeek: "STRING_VALUE", // required
|
|
70
|
+
* TimeOfDay: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* AppointmentTime: "STRING_VALUE",
|
|
74
|
+
* Heading: Number("double"),
|
|
75
|
+
* Id: "STRING_VALUE",
|
|
76
|
+
* ServiceDuration: Number("long"),
|
|
77
|
+
* SideOfStreet: { // WaypointOptimizationSideOfStreetOptions
|
|
78
|
+
* Position: [ // required
|
|
79
|
+
* Number("double"),
|
|
80
|
+
* ],
|
|
81
|
+
* UseWith: "STRING_VALUE",
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* Driver: { // WaypointOptimizationDriverOptions
|
|
85
|
+
* RestCycles: { // WaypointOptimizationRestCycles
|
|
86
|
+
* LongCycle: { // WaypointOptimizationRestCycleDurations
|
|
87
|
+
* RestDuration: Number("long"), // required
|
|
88
|
+
* WorkDuration: Number("long"), // required
|
|
89
|
+
* },
|
|
90
|
+
* ShortCycle: {
|
|
91
|
+
* RestDuration: Number("long"), // required
|
|
92
|
+
* WorkDuration: Number("long"), // required
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* RestProfile: { // WaypointOptimizationRestProfile
|
|
96
|
+
* Profile: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* TreatServiceTimeAs: "STRING_VALUE",
|
|
99
|
+
* },
|
|
100
|
+
* Exclude: { // WaypointOptimizationExclusionOptions
|
|
101
|
+
* Countries: [ // CountryCodeList // required
|
|
102
|
+
* "STRING_VALUE",
|
|
103
|
+
* ],
|
|
104
|
+
* },
|
|
105
|
+
* Key: "STRING_VALUE",
|
|
106
|
+
* OptimizeSequencingFor: "STRING_VALUE",
|
|
107
|
+
* Origin: [ // required
|
|
108
|
+
* Number("double"),
|
|
109
|
+
* ],
|
|
110
|
+
* OriginOptions: { // WaypointOptimizationOriginOptions
|
|
111
|
+
* Id: "STRING_VALUE",
|
|
112
|
+
* },
|
|
113
|
+
* Traffic: { // WaypointOptimizationTrafficOptions
|
|
114
|
+
* Usage: "STRING_VALUE",
|
|
115
|
+
* },
|
|
116
|
+
* TravelMode: "STRING_VALUE",
|
|
117
|
+
* TravelModeOptions: { // WaypointOptimizationTravelModeOptions
|
|
118
|
+
* Pedestrian: { // WaypointOptimizationPedestrianOptions
|
|
119
|
+
* Speed: Number("double"),
|
|
120
|
+
* },
|
|
121
|
+
* Truck: { // WaypointOptimizationTruckOptions
|
|
122
|
+
* GrossWeight: Number("long"),
|
|
123
|
+
* HazardousCargos: [ // WaypointOptimizationHazardousCargoTypeList
|
|
124
|
+
* "STRING_VALUE",
|
|
125
|
+
* ],
|
|
126
|
+
* Height: Number("long"),
|
|
127
|
+
* Length: Number("long"),
|
|
128
|
+
* Trailer: { // WaypointOptimizationTrailerOptions
|
|
129
|
+
* TrailerCount: Number("int"),
|
|
130
|
+
* },
|
|
131
|
+
* TruckType: "STRING_VALUE",
|
|
132
|
+
* TunnelRestrictionCode: "STRING_VALUE",
|
|
133
|
+
* WeightPerAxle: Number("long"),
|
|
134
|
+
* Width: Number("long"),
|
|
135
|
+
* },
|
|
136
|
+
* },
|
|
137
|
+
* Waypoints: [ // WaypointOptimizationWaypointList
|
|
138
|
+
* { // WaypointOptimizationWaypoint
|
|
139
|
+
* AccessHours: {
|
|
140
|
+
* From: {
|
|
141
|
+
* DayOfWeek: "STRING_VALUE", // required
|
|
142
|
+
* TimeOfDay: "STRING_VALUE", // required
|
|
143
|
+
* },
|
|
144
|
+
* To: {
|
|
145
|
+
* DayOfWeek: "STRING_VALUE", // required
|
|
146
|
+
* TimeOfDay: "STRING_VALUE", // required
|
|
147
|
+
* },
|
|
148
|
+
* },
|
|
149
|
+
* AppointmentTime: "STRING_VALUE",
|
|
150
|
+
* Before: [ // BeforeWaypointsList
|
|
151
|
+
* Number("int"),
|
|
152
|
+
* ],
|
|
153
|
+
* Heading: Number("double"),
|
|
154
|
+
* Id: "STRING_VALUE",
|
|
155
|
+
* Position: [ // required
|
|
156
|
+
* Number("double"),
|
|
157
|
+
* ],
|
|
158
|
+
* ServiceDuration: Number("long"),
|
|
159
|
+
* SideOfStreet: {
|
|
160
|
+
* Position: "<Position>", // required
|
|
161
|
+
* UseWith: "STRING_VALUE",
|
|
162
|
+
* },
|
|
163
|
+
* },
|
|
164
|
+
* ],
|
|
165
|
+
* };
|
|
166
|
+
* const command = new OptimizeWaypointsCommand(input);
|
|
167
|
+
* const response = await client.send(command);
|
|
168
|
+
* // { // OptimizeWaypointsResponse
|
|
169
|
+
* // Connections: [ // WaypointOptimizationConnectionList // required
|
|
170
|
+
* // { // WaypointOptimizationConnection
|
|
171
|
+
* // Distance: Number("long"), // required
|
|
172
|
+
* // From: "STRING_VALUE", // required
|
|
173
|
+
* // RestDuration: Number("long"), // required
|
|
174
|
+
* // To: "STRING_VALUE", // required
|
|
175
|
+
* // TravelDuration: Number("long"), // required
|
|
176
|
+
* // WaitDuration: Number("long"), // required
|
|
177
|
+
* // },
|
|
178
|
+
* // ],
|
|
179
|
+
* // Distance: Number("long"), // required
|
|
180
|
+
* // Duration: Number("long"), // required
|
|
181
|
+
* // ImpedingWaypoints: [ // WaypointOptimizationImpedingWaypointList // required
|
|
182
|
+
* // { // WaypointOptimizationImpedingWaypoint
|
|
183
|
+
* // FailedConstraints: [ // WaypointOptimizationFailedConstraintList // required
|
|
184
|
+
* // { // WaypointOptimizationFailedConstraint
|
|
185
|
+
* // Constraint: "STRING_VALUE",
|
|
186
|
+
* // Reason: "STRING_VALUE",
|
|
187
|
+
* // },
|
|
188
|
+
* // ],
|
|
189
|
+
* // Id: "STRING_VALUE", // required
|
|
190
|
+
* // Position: [ // Position // required
|
|
191
|
+
* // Number("double"),
|
|
192
|
+
* // ],
|
|
193
|
+
* // },
|
|
194
|
+
* // ],
|
|
195
|
+
* // OptimizedWaypoints: [ // WaypointOptimizationOptimizedWaypointList // required
|
|
196
|
+
* // { // WaypointOptimizationOptimizedWaypoint
|
|
197
|
+
* // ArrivalTime: "STRING_VALUE",
|
|
198
|
+
* // DepartureTime: "STRING_VALUE", // required
|
|
199
|
+
* // Id: "STRING_VALUE", // required
|
|
200
|
+
* // Position: [ // required
|
|
201
|
+
* // Number("double"),
|
|
202
|
+
* // ],
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
206
|
+
* // TimeBreakdown: { // WaypointOptimizationTimeBreakdown
|
|
207
|
+
* // RestDuration: Number("long"), // required
|
|
208
|
+
* // ServiceDuration: Number("long"), // required
|
|
209
|
+
* // TravelDuration: Number("long"), // required
|
|
210
|
+
* // WaitDuration: Number("long"), // required
|
|
211
|
+
* // },
|
|
212
|
+
* // };
|
|
213
|
+
*
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @param OptimizeWaypointsCommandInput - {@link OptimizeWaypointsCommandInput}
|
|
217
|
+
* @returns {@link OptimizeWaypointsCommandOutput}
|
|
218
|
+
* @see {@link OptimizeWaypointsCommandInput} for command's `input` shape.
|
|
219
|
+
* @see {@link OptimizeWaypointsCommandOutput} for command's `response` shape.
|
|
220
|
+
* @see {@link GeoRoutesClientResolvedConfig | config} for GeoRoutesClient's `config` shape.
|
|
221
|
+
*
|
|
222
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
223
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
224
|
+
*
|
|
225
|
+
* @throws {@link InternalServerException} (server fault)
|
|
226
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
227
|
+
*
|
|
228
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
229
|
+
* <p>The request was denied due to request throttling.</p>
|
|
230
|
+
*
|
|
231
|
+
* @throws {@link ValidationException} (client fault)
|
|
232
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
233
|
+
*
|
|
234
|
+
* @throws {@link GeoRoutesServiceException}
|
|
235
|
+
* <p>Base exception class for all service exceptions from GeoRoutes service.</p>
|
|
236
|
+
*
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
export declare class OptimizeWaypointsCommand extends OptimizeWaypointsCommand_base {
|
|
240
|
+
/** @internal type navigation helper, not in runtime. */
|
|
241
|
+
protected static __types: {
|
|
242
|
+
api: {
|
|
243
|
+
input: OptimizeWaypointsRequest;
|
|
244
|
+
output: OptimizeWaypointsResponse;
|
|
245
|
+
};
|
|
246
|
+
sdk: {
|
|
247
|
+
input: OptimizeWaypointsCommandInput;
|
|
248
|
+
output: OptimizeWaypointsCommandOutput;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { SnapToRoadsRequest, SnapToRoadsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SnapToRoadsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SnapToRoadsCommandInput extends SnapToRoadsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SnapToRoadsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SnapToRoadsCommandOutput extends SnapToRoadsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SnapToRoadsCommand_base: {
|
|
25
|
+
new (input: SnapToRoadsCommandInput): import("@smithy/smithy-client").CommandImpl<SnapToRoadsCommandInput, SnapToRoadsCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SnapToRoadsCommandInput): import("@smithy/smithy-client").CommandImpl<SnapToRoadsCommandInput, SnapToRoadsCommandOutput, GeoRoutesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>The SnapToRoads action matches GPS trace to roads most likely traveled on.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { GeoRoutesClient, SnapToRoadsCommand } from "@aws-sdk/client-geo-routes"; // ES Modules import
|
|
35
|
+
* // const { GeoRoutesClient, SnapToRoadsCommand } = require("@aws-sdk/client-geo-routes"); // CommonJS import
|
|
36
|
+
* const client = new GeoRoutesClient(config);
|
|
37
|
+
* const input = { // SnapToRoadsRequest
|
|
38
|
+
* Key: "STRING_VALUE",
|
|
39
|
+
* SnappedGeometryFormat: "STRING_VALUE",
|
|
40
|
+
* SnapRadius: Number("long"),
|
|
41
|
+
* TracePoints: [ // RoadSnapTracePointList // required
|
|
42
|
+
* { // RoadSnapTracePoint
|
|
43
|
+
* Heading: Number("double"),
|
|
44
|
+
* Position: [ // Position // required
|
|
45
|
+
* Number("double"),
|
|
46
|
+
* ],
|
|
47
|
+
* Speed: Number("double"),
|
|
48
|
+
* Timestamp: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* TravelMode: "STRING_VALUE",
|
|
52
|
+
* TravelModeOptions: { // RoadSnapTravelModeOptions
|
|
53
|
+
* Truck: { // RoadSnapTruckOptions
|
|
54
|
+
* GrossWeight: Number("long"),
|
|
55
|
+
* HazardousCargos: [ // RoadSnapHazardousCargoTypeList
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* Height: Number("long"),
|
|
59
|
+
* Length: Number("long"),
|
|
60
|
+
* Trailer: { // RoadSnapTrailerOptions
|
|
61
|
+
* TrailerCount: Number("int"),
|
|
62
|
+
* },
|
|
63
|
+
* TunnelRestrictionCode: "STRING_VALUE",
|
|
64
|
+
* Width: Number("long"),
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* };
|
|
68
|
+
* const command = new SnapToRoadsCommand(input);
|
|
69
|
+
* const response = await client.send(command);
|
|
70
|
+
* // { // SnapToRoadsResponse
|
|
71
|
+
* // Notices: [ // RoadSnapNoticeList // required
|
|
72
|
+
* // { // RoadSnapNotice
|
|
73
|
+
* // Code: "STRING_VALUE", // required
|
|
74
|
+
* // Title: "STRING_VALUE", // required
|
|
75
|
+
* // TracePointIndexes: [ // RoadSnapTracePointIndexList // required
|
|
76
|
+
* // Number("int"),
|
|
77
|
+
* // ],
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
81
|
+
* // SnappedGeometry: { // RoadSnapSnappedGeometry
|
|
82
|
+
* // LineString: [ // LineString
|
|
83
|
+
* // [ // Position
|
|
84
|
+
* // Number("double"),
|
|
85
|
+
* // ],
|
|
86
|
+
* // ],
|
|
87
|
+
* // Polyline: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // SnappedGeometryFormat: "STRING_VALUE", // required
|
|
90
|
+
* // SnappedTracePoints: [ // RoadSnapSnappedTracePointList // required
|
|
91
|
+
* // { // RoadSnapSnappedTracePoint
|
|
92
|
+
* // Confidence: Number("double"), // required
|
|
93
|
+
* // OriginalPosition: [ // required
|
|
94
|
+
* // Number("double"),
|
|
95
|
+
* // ],
|
|
96
|
+
* // SnappedPosition: [ // required
|
|
97
|
+
* // Number("double"),
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // };
|
|
102
|
+
*
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* @param SnapToRoadsCommandInput - {@link SnapToRoadsCommandInput}
|
|
106
|
+
* @returns {@link SnapToRoadsCommandOutput}
|
|
107
|
+
* @see {@link SnapToRoadsCommandInput} for command's `input` shape.
|
|
108
|
+
* @see {@link SnapToRoadsCommandOutput} for command's `response` shape.
|
|
109
|
+
* @see {@link GeoRoutesClientResolvedConfig | config} for GeoRoutesClient's `config` shape.
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
112
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link InternalServerException} (server fault)
|
|
115
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
118
|
+
* <p>The request was denied due to request throttling.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ValidationException} (client fault)
|
|
121
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link GeoRoutesServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from GeoRoutes service.</p>
|
|
125
|
+
*
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export declare class SnapToRoadsCommand extends SnapToRoadsCommand_base {
|
|
129
|
+
/** @internal type navigation helper, not in runtime. */
|
|
130
|
+
protected static __types: {
|
|
131
|
+
api: {
|
|
132
|
+
input: SnapToRoadsRequest;
|
|
133
|
+
output: SnapToRoadsResponse;
|
|
134
|
+
};
|
|
135
|
+
sdk: {
|
|
136
|
+
input: SnapToRoadsCommandInput;
|
|
137
|
+
output: SnapToRoadsCommandOutput;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
7
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
9
|
+
region?: string | Provider<string>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const commonParams: {
|
|
18
|
+
readonly UseFIPS: {
|
|
19
|
+
readonly type: "builtInParams";
|
|
20
|
+
readonly name: "useFipsEndpoint";
|
|
21
|
+
};
|
|
22
|
+
readonly Endpoint: {
|
|
23
|
+
readonly type: "builtInParams";
|
|
24
|
+
readonly name: "endpoint";
|
|
25
|
+
};
|
|
26
|
+
readonly Region: {
|
|
27
|
+
readonly type: "builtInParams";
|
|
28
|
+
readonly name: "region";
|
|
29
|
+
};
|
|
30
|
+
readonly UseDualStack: {
|
|
31
|
+
readonly type: "builtInParams";
|
|
32
|
+
readonly name: "useDualstackEndpoint";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
36
|
+
UseDualStack?: boolean;
|
|
37
|
+
UseFIPS?: boolean;
|
|
38
|
+
Endpoint?: string;
|
|
39
|
+
Region?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface GeoRoutesExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>With the Amazon Location Routes API you can calculate
|
|
3
|
+
* routes and estimate travel time based on up-to-date road network and live
|
|
4
|
+
* traffic information.</p>
|
|
5
|
+
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:</p>
|
|
6
|
+
* <ul>
|
|
7
|
+
* <li>
|
|
8
|
+
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions</p>
|
|
9
|
+
* </li>
|
|
10
|
+
* <li>
|
|
11
|
+
* <p>Multi-point route optimization to minimize travel time or distance</p>
|
|
12
|
+
* </li>
|
|
13
|
+
* <li>
|
|
14
|
+
* <p>Route matrices for efficient multi-destination planning</p>
|
|
15
|
+
* </li>
|
|
16
|
+
* <li>
|
|
17
|
+
* <p>Isoline calculations to determine reachable areas within specified time or distance thresholds</p>
|
|
18
|
+
* </li>
|
|
19
|
+
* <li>
|
|
20
|
+
* <p>Map-matching to align GPS traces with the road network</p>
|
|
21
|
+
* </li>
|
|
22
|
+
* </ul>
|
|
23
|
+
*
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
*/
|
|
26
|
+
export * from "./GeoRoutesClient";
|
|
27
|
+
export * from "./GeoRoutes";
|
|
28
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
29
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
30
|
+
export type { GeoRoutesExtensionConfiguration } from "./extensionConfiguration";
|
|
31
|
+
export * from "./commands";
|
|
32
|
+
export * from "./models";
|
|
33
|
+
export { GeoRoutesServiceException } from "./models/GeoRoutesServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from GeoRoutes service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class GeoRoutesServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|