Skip to content

Commit 423ede1

Browse files
author
awstools
committed
feat(client-geo-routes): The OptimizeWaypoints API now supports 50 waypoints per request (20 with constraints like AccessHours or AppointmentTime). It adds waypoint clustering via Clustering and ClusteringIndex for better optimization. Also, total distance validation is removed for greater flexibility.
1 parent 31194b2 commit 423ede1

12 files changed

+971
-544
lines changed

clients/client-geo-routes/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
AWS SDK for JavaScript GeoRoutes Client for Node.js, Browser and React Native.
88

9-
<p>With the Amazon Location Routes API you can calculate
10-
routes and estimate travel time based on up-to-date road network and live
11-
traffic information.</p>
12-
<p>Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:</p>
9+
<p>With the Amazon Location Routes API you can calculate routes and estimate travel time
10+
based on up-to-date road network and live traffic information.</p>
11+
<p>Calculate optimal travel routes and estimate travel times using up-to-date road network
12+
and traffic data. Key features include:</p>
1313
<ul>
1414
<li>
15-
<p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions</p>
15+
<p>Point-to-point routing with estimated travel time, distance, and turn-by-turn
16+
directions</p>
1617
</li>
1718
<li>
1819
<p>Multi-point route optimization to minimize travel time or distance</p>
@@ -21,7 +22,8 @@ traffic information.</p>
2122
<p>Route matrices for efficient multi-destination planning</p>
2223
</li>
2324
<li>
24-
<p>Isoline calculations to determine reachable areas within specified time or distance thresholds</p>
25+
<p>Isoline calculations to determine reachable areas within specified time or
26+
distance thresholds</p>
2527
</li>
2628
<li>
2729
<p>Map-matching to align GPS traces with the road network</p>

clients/client-geo-routes/src/GeoRoutes.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ export interface GeoRoutes {
112112
}
113113

114114
/**
115-
* <p>With the Amazon Location Routes API you can calculate
116-
* routes and estimate travel time based on up-to-date road network and live
117-
* traffic information.</p>
118-
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:</p>
115+
* <p>With the Amazon Location Routes API you can calculate routes and estimate travel time
116+
* based on up-to-date road network and live traffic information.</p>
117+
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network
118+
* and traffic data. Key features include:</p>
119119
* <ul>
120120
* <li>
121-
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions</p>
121+
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn
122+
* directions</p>
122123
* </li>
123124
* <li>
124125
* <p>Multi-point route optimization to minimize travel time or distance</p>
@@ -127,7 +128,8 @@ export interface GeoRoutes {
127128
* <p>Route matrices for efficient multi-destination planning</p>
128129
* </li>
129130
* <li>
130-
* <p>Isoline calculations to determine reachable areas within specified time or distance thresholds</p>
131+
* <p>Isoline calculations to determine reachable areas within specified time or
132+
* distance thresholds</p>
131133
* </li>
132134
* <li>
133135
* <p>Map-matching to align GPS traces with the road network</p>

clients/client-geo-routes/src/GeoRoutesClient.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,14 @@ export type GeoRoutesClientResolvedConfigType = __SmithyResolvedConfiguration<__
283283
export interface GeoRoutesClientResolvedConfig extends GeoRoutesClientResolvedConfigType {}
284284

285285
/**
286-
* <p>With the Amazon Location Routes API you can calculate
287-
* routes and estimate travel time based on up-to-date road network and live
288-
* traffic information.</p>
289-
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:</p>
286+
* <p>With the Amazon Location Routes API you can calculate routes and estimate travel time
287+
* based on up-to-date road network and live traffic information.</p>
288+
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network
289+
* and traffic data. Key features include:</p>
290290
* <ul>
291291
* <li>
292-
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions</p>
292+
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn
293+
* directions</p>
293294
* </li>
294295
* <li>
295296
* <p>Multi-point route optimization to minimize travel time or distance</p>
@@ -298,7 +299,8 @@ export interface GeoRoutesClientResolvedConfig extends GeoRoutesClientResolvedCo
298299
* <p>Route matrices for efficient multi-destination planning</p>
299300
* </li>
300301
* <li>
301-
* <p>Isoline calculations to determine reachable areas within specified time or distance thresholds</p>
302+
* <p>Isoline calculations to determine reachable areas within specified time or
303+
* distance thresholds</p>
302304
* </li>
303305
* <li>
304306
* <p>Map-matching to align GPS traces with the road network</p>

clients/client-geo-routes/src/commands/CalculateIsolinesCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ export interface CalculateIsolinesCommandOutput extends CalculateIsolinesRespons
293293
* <p>You don't have sufficient access to perform this action.</p>
294294
*
295295
* @throws {@link InternalServerException} (server fault)
296-
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
296+
* <p>The request processing has failed because of an unknown error, exception or
297+
* failure.</p>
297298
*
298299
* @throws {@link ThrottlingException} (client fault)
299300
* <p>The request was denied due to request throttling.</p>

clients/client-geo-routes/src/commands/CalculateRouteMatrixCommand.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ export interface CalculateRouteMatrixCommandInput extends CalculateRouteMatrixRe
3333
export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixResponse, __MetadataBearer {}
3434

3535
/**
36-
* <p>Calculates route matrix containing the results for all pairs of
37-
* Origins to Destinations. Each row corresponds to one entry in Origins.
38-
* Each entry in the row corresponds to the route from that entry in Origins to an entry in Destinations positions.</p>
36+
* <p> Use <code>CalculateRouteMatrix</code> to compute results for all pairs of Origins to
37+
* Destinations. Each row corresponds to one entry in Origins. Each entry in the row
38+
* corresponds to the route from that entry in Origins to an entry in Destinations
39+
* positions.</p>
3940
* @example
4041
* Use a bare-bones client and the command you need to make an API call.
4142
* ```javascript
@@ -259,7 +260,8 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
259260
* <p>You don't have sufficient access to perform this action.</p>
260261
*
261262
* @throws {@link InternalServerException} (server fault)
262-
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
263+
* <p>The request processing has failed because of an unknown error, exception or
264+
* failure.</p>
263265
*
264266
* @throws {@link ThrottlingException} (client fault)
265267
* <p>The request was denied due to request throttling.</p>

clients/client-geo-routes/src/commands/CalculateRoutesCommand.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ export interface CalculateRoutesCommandInput extends CalculateRoutesRequest {}
3333
export interface CalculateRoutesCommandOutput extends CalculateRoutesResponse, __MetadataBearer {}
3434

3535
/**
36-
* <p>Calculates a route given the following required parameters:
37-
* <code>Origin</code> and <code>Destination</code>.</p>
36+
* <p>
37+
* <code>CalculateRoutes</code> computes routes given the following required parameters:
38+
* <code>Origin</code> and <code>Destination</code>.</p>
3839
* @example
3940
* Use a bare-bones client and the command you need to make an API call.
4041
* ```javascript
@@ -947,7 +948,8 @@ export interface CalculateRoutesCommandOutput extends CalculateRoutesResponse, _
947948
* <p>You don't have sufficient access to perform this action.</p>
948949
*
949950
* @throws {@link InternalServerException} (server fault)
950-
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
951+
* <p>The request processing has failed because of an unknown error, exception or
952+
* failure.</p>
951953
*
952954
* @throws {@link ThrottlingException} (client fault)
953955
* <p>The request was denied due to request throttling.</p>

clients/client-geo-routes/src/commands/OptimizeWaypointsCommand.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ export interface OptimizeWaypointsCommandInput extends OptimizeWaypointsRequest
3333
export interface OptimizeWaypointsCommandOutput extends OptimizeWaypointsResponse, __MetadataBearer {}
3434

3535
/**
36-
* <p>Calculates the optimal order to travel between a set of waypoints to minimize either the
37-
* travel time or the distance travelled during the journey, based on road network
38-
* restrictions and the traffic pattern data.</p>
36+
* <p>
37+
* <code>OptimizeWaypoints</code> calculates the optimal order to travel between a set of
38+
* waypoints to minimize either the travel time or the distance travelled during the journey,
39+
* based on road network restrictions and the traffic pattern data.</p>
3940
* @example
4041
* Use a bare-bones client and the command you need to make an API call.
4142
* ```javascript
@@ -61,6 +62,12 @@ export interface OptimizeWaypointsCommandOutput extends OptimizeWaypointsRespons
6162
* Tunnels: true || false,
6263
* UTurns: true || false,
6364
* },
65+
* Clustering: { // WaypointOptimizationClusteringOptions
66+
* Algorithm: "STRING_VALUE", // required
67+
* DrivingDistanceOptions: { // WaypointOptimizationDrivingDistanceOptions
68+
* DrivingDistance: Number("long"), // required
69+
* },
70+
* },
6471
* DepartureTime: "STRING_VALUE",
6572
* Destination: [ // Position
6673
* Number("double"),
@@ -201,6 +208,7 @@ export interface OptimizeWaypointsCommandOutput extends OptimizeWaypointsRespons
201208
* // OptimizedWaypoints: [ // WaypointOptimizationOptimizedWaypointList // required
202209
* // { // WaypointOptimizationOptimizedWaypoint
203210
* // ArrivalTime: "STRING_VALUE",
211+
* // ClusterIndex: Number("int"),
204212
* // DepartureTime: "STRING_VALUE", // required
205213
* // Id: "STRING_VALUE", // required
206214
* // Position: [ // required
@@ -229,7 +237,8 @@ export interface OptimizeWaypointsCommandOutput extends OptimizeWaypointsRespons
229237
* <p>You don't have sufficient access to perform this action.</p>
230238
*
231239
* @throws {@link InternalServerException} (server fault)
232-
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
240+
* <p>The request processing has failed because of an unknown error, exception or
241+
* failure.</p>
233242
*
234243
* @throws {@link ThrottlingException} (client fault)
235244
* <p>The request was denied due to request throttling.</p>

clients/client-geo-routes/src/commands/SnapToRoadsCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export interface SnapToRoadsCommandInput extends SnapToRoadsRequest {}
3333
export interface SnapToRoadsCommandOutput extends SnapToRoadsResponse, __MetadataBearer {}
3434

3535
/**
36-
* <p>The SnapToRoads action matches GPS trace to roads most likely traveled on.</p>
36+
* <p>
37+
* <code>SnapToRoads</code> matches GPS trace to roads most likely traveled on.</p>
3738
* @example
3839
* Use a bare-bones client and the command you need to make an API call.
3940
* ```javascript
@@ -118,7 +119,8 @@ export interface SnapToRoadsCommandOutput extends SnapToRoadsResponse, __Metadat
118119
* <p>You don't have sufficient access to perform this action.</p>
119120
*
120121
* @throws {@link InternalServerException} (server fault)
121-
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
122+
* <p>The request processing has failed because of an unknown error, exception or
123+
* failure.</p>
122124
*
123125
* @throws {@link ThrottlingException} (client fault)
124126
* <p>The request was denied due to request throttling.</p>

clients/client-geo-routes/src/index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// smithy-typescript generated code
22
/* eslint-disable */
33
/**
4-
* <p>With the Amazon Location Routes API you can calculate
5-
* routes and estimate travel time based on up-to-date road network and live
6-
* traffic information.</p>
7-
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:</p>
4+
* <p>With the Amazon Location Routes API you can calculate routes and estimate travel time
5+
* based on up-to-date road network and live traffic information.</p>
6+
* <p>Calculate optimal travel routes and estimate travel times using up-to-date road network
7+
* and traffic data. Key features include:</p>
88
* <ul>
99
* <li>
10-
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions</p>
10+
* <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn
11+
* directions</p>
1112
* </li>
1213
* <li>
1314
* <p>Multi-point route optimization to minimize travel time or distance</p>
@@ -16,7 +17,8 @@
1617
* <p>Route matrices for efficient multi-destination planning</p>
1718
* </li>
1819
* <li>
19-
* <p>Isoline calculations to determine reachable areas within specified time or distance thresholds</p>
20+
* <p>Isoline calculations to determine reachable areas within specified time or
21+
* distance thresholds</p>
2022
* </li>
2123
* <li>
2224
* <p>Map-matching to align GPS traces with the road network</p>

0 commit comments

Comments
 (0)