optimizeWaypoints
inline suspend fun GeoRoutesClient.optimizeWaypoints(crossinline block: OptimizeWaypointsRequest.Builder.() -> Unit): OptimizeWaypointsResponse
OptimizeWaypoints calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.
For more information, see Optimize waypoints in the Amazon Location Service Developer Guide.