AWS location: Update CalculateRoute links and add V2 API note
Summary
Updated API reference links to the 'previous' path and added a note pointing to the latest CalculateRoutes (plural) operation under geo-routes.
Security assessment
The change only updates documentation links and adds a versioning note about the newer API; no security feature, vulnerability, or credential handling is discussed.
Evidence
+In the latest API, this operation is `[CalculateRoutes](https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateRoutes.html)` (plural) under `geo-routes`, which takes `Origin` and `Destination` instead of `DeparturePosition` and `DestinationPosition`, and does not require a route calculator resource.
Diff
diff --git a/location/previous/developerguide/calculate-route.md b/location/previous/developerguide/calculate-route.md index e699c0ad5..0901a5024 100644 --- a//location/previous/developerguide/calculate-route.md +++ b//location/previous/developerguide/calculate-route.md @@ -19 +19,5 @@ You must first create a route calculator resource and set up authentication for -Submit a simple request by using the `[CalculateRoute](https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CalculateRoute.html)` operation. A simple request contains the following required fields: +Submit a simple request by using the `[CalculateRoute](https://docs.aws.amazon.com/location/previous/APIReference/API_CalculateRoute.html)` operation. A simple request contains the following required fields: + +###### Note + +In the latest API, this operation is `[CalculateRoutes](https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateRoutes.html)` (plural) under `geo-routes`, which takes `Origin` and `Destination` instead of `DeparturePosition` and `DestinationPosition`, and does not require a route calculator resource. @@ -94 +98 @@ If you specify a waypoint position that's not located on a road, Amazon Location -The following `[CalculateRoute](https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CalculateRoute.html)` request calculates a route with 2 waypoints: +The following `[CalculateRoute](https://docs.aws.amazon.com/location/previous/APIReference/API_CalculateRoute.html)` request calculates a route with 2 waypoints: @@ -126 +130 @@ The following `[CalculateRoute](https://docs.aws.amazon.com/location-routes/late -The following is an example request with the corresponding response when calling the `[CalculateRoute](https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CalculateRoute.html)` operation from the Amazon Location Routes API with the `IncludeLegGeometry` set to `true`, which includes the linestring geometry of each path between a pair of positions in the response. +The following is an example request with the corresponding response when calling the `[CalculateRoute](https://docs.aws.amazon.com/location/previous/APIReference/API_CalculateRoute.html)` operation from the Amazon Location Routes API with the `IncludeLegGeometry` set to `true`, which includes the linestring geometry of each path between a pair of positions in the response.