11/*
2- * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License").
55 * You may not use this file except in compliance with the License.
@@ -358,7 +358,7 @@ BatchUpdateDevicePositionResult batchUpdateDevicePosition(
358358 * <a href=
359359 * "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html"
360360 * >Calculates a route</a> given the following required parameters:
361- * <code>DeparturePostiton </code> and <code>DestinationPosition</code>.
361+ * <code>DeparturePosition </code> and <code>DestinationPosition</code>.
362362 * Requires that you first <a href=
363363 * "https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html"
364364 * >create a route calculator resource</a>.
@@ -375,31 +375,30 @@ BatchUpdateDevicePositionResult batchUpdateDevicePosition(
375375 * <li>
376376 * <p>
377377 * <a href=
378- * "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html# departure-time"
378+ * "https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html "
379379 * >Specifying a departure time</a> using either <code>DepartureTime</code>
380- * or <code>DepartureNow </code>. This calculates a route based on predictive
380+ * or <code>DepartNow </code>. This calculates a route based on predictive
381381 * traffic data at the given time.
382382 * </p>
383383 * <note>
384384 * <p>
385385 * You can't specify both <code>DepartureTime</code> and
386- * <code>DepartureNow </code> in a single request. Specifying both parameters
386+ * <code>DepartNow </code> in a single request. Specifying both parameters
387387 * returns a validation error.
388388 * </p>
389389 * </note></li>
390390 * <li>
391391 * <p>
392392 * <a href=
393- * "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#travel-mode"
394- * >Specifying a travel mode</a> using TravelMode. This lets you specify an
395- * additional route preference such as <code>CarModeOptions</code> if
396- * traveling by <code>Car</code>, or <code>TruckModeOptions</code> if
397- * traveling by <code>Truck</code>.
393+ * "https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html"
394+ * >Specifying a travel mode</a> using TravelMode sets the transportation
395+ * mode used to calculate the routes. This also lets you specify additional
396+ * route preferences in <code>CarModeOptions</code> if traveling by
397+ * <code>Car</code>, or <code>TruckModeOptions</code> if traveling by
398+ * <code>Truck</code>.
398399 * </p>
399400 * </li>
400401 * </ul>
401- * <p>
402- * </p>
403402 *
404403 * @param calculateRouteRequest
405404 * @return calculateRouteResult The response from the CalculateRoute service
@@ -420,6 +419,91 @@ BatchUpdateDevicePositionResult batchUpdateDevicePosition(
420419 CalculateRouteResult calculateRoute (CalculateRouteRequest calculateRouteRequest )
421420 throws AmazonClientException , AmazonServiceException ;
422421
422+ /**
423+ * <p>
424+ * <a href=
425+ * "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route-matrix.html"
426+ * > Calculates a route matrix</a> given the following required parameters:
427+ * <code>DeparturePositions</code> and <code>DestinationPositions</code>.
428+ * <code>CalculateRouteMatrix</code> calculates routes and returns the
429+ * travel time and travel distance from each departure position to each
430+ * destination position in the request. For example, given departure
431+ * positions A and B, and destination positions X and Y,
432+ * <code>CalculateRouteMatrix</code> will return time and distance for
433+ * routes from A to X, A to Y, B to X, and B to Y (in that order). The
434+ * number of results returned (and routes calculated) will be the number of
435+ * <code>DeparturePositions</code> times the number of
436+ * <code>DestinationPositions</code>.
437+ * </p>
438+ * <note>
439+ * <p>
440+ * Your account is charged for each route calculated, not the number of
441+ * requests.
442+ * </p>
443+ * </note>
444+ * <p>
445+ * Requires that you first <a href=
446+ * "https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html"
447+ * >create a route calculator resource</a>.
448+ * </p>
449+ * <p>
450+ * By default, a request that doesn't specify a departure time uses the best
451+ * time of day to travel with the best traffic conditions when calculating
452+ * routes.
453+ * </p>
454+ * <p>
455+ * Additional options include:
456+ * </p>
457+ * <ul>
458+ * <li>
459+ * <p>
460+ * <a href=
461+ * "https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html"
462+ * > Specifying a departure time</a> using either <code>DepartureTime</code>
463+ * or <code>DepartNow</code>. This calculates routes based on predictive
464+ * traffic data at the given time.
465+ * </p>
466+ * <note>
467+ * <p>
468+ * You can't specify both <code>DepartureTime</code> and
469+ * <code>DepartNow</code> in a single request. Specifying both parameters
470+ * returns a validation error.
471+ * </p>
472+ * </note></li>
473+ * <li>
474+ * <p>
475+ * <a href=
476+ * "https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html"
477+ * >Specifying a travel mode</a> using TravelMode sets the transportation
478+ * mode used to calculate the routes. This also lets you specify additional
479+ * route preferences in <code>CarModeOptions</code> if traveling by
480+ * <code>Car</code>, or <code>TruckModeOptions</code> if traveling by
481+ * <code>Truck</code>.
482+ * </p>
483+ * </li>
484+ * </ul>
485+ *
486+ * @param calculateRouteMatrixRequest
487+ * @return calculateRouteMatrixResult The response from the
488+ * CalculateRouteMatrix service method, as returned by AWS Location
489+ * service.
490+ * @throws InternalServerException
491+ * @throws ResourceNotFoundException
492+ * @throws AccessDeniedException
493+ * @throws ValidationException
494+ * @throws ThrottlingException
495+ * @throws AmazonClientException If any internal errors are encountered
496+ * inside the client while attempting to make the request or
497+ * handle the response. For example if a network connection is
498+ * not available.
499+ * @throws AmazonServiceException If an error response is returned by AWS
500+ * Location service indicating either a problem with the data in
501+ * the request, or a server side issue.
502+ */
503+ CalculateRouteMatrixResult calculateRouteMatrix (
504+ CalculateRouteMatrixRequest calculateRouteMatrixRequest ) throws AmazonClientException ,
505+ AmazonServiceException ;
506+
423507 /**
424508 * <p>
425509 * Creates a geofence collection, which manages and stores geofences.
@@ -451,6 +535,15 @@ CreateGeofenceCollectionResult createGeofenceCollection(
451535 * Creates a map resource in your AWS account, which provides map tiles of
452536 * different styles sourced from global location data providers.
453537 * </p>
538+ * <note>
539+ * <p>
540+ * If your application is tracking or routing assets you use in your
541+ * business, such as delivery vehicles or employees, you may only use HERE
542+ * as your geolocation provider. See section 82 of the <a
543+ * href="http://aws.amazon.com/service-terms">AWS service terms</a> for more
544+ * details.
545+ * </p>
546+ * </note>
454547 *
455548 * @param createMapRequest
456549 * @return createMapResult The response from the CreateMap service method,
@@ -480,6 +573,15 @@ CreateMapResult createMap(CreateMapRequest createMapRequest) throws AmazonClient
480573 * operation, and enable autosuggestions by using the
481574 * <code>SearchPlaceIndexForSuggestions</code> operation.
482575 * </p>
576+ * <note>
577+ * <p>
578+ * If your application is tracking or routing assets you use in your
579+ * business, such as delivery vehicles or employees, you may only use HERE
580+ * as your geolocation provider. See section 82 of the <a
581+ * href="http://aws.amazon.com/service-terms">AWS service terms</a> for more
582+ * details.
583+ * </p>
584+ * </note>
483585 *
484586 * @param createPlaceIndexRequest
485587 * @return createPlaceIndexResult The response from the CreatePlaceIndex
@@ -509,6 +611,15 @@ CreatePlaceIndexResult createPlaceIndex(CreatePlaceIndexRequest createPlaceIndex
509611 * time, distance, and get directions. A route calculator sources traffic
510612 * and road network data from your chosen data provider.
511613 * </p>
614+ * <note>
615+ * <p>
616+ * If your application is tracking or routing assets you use in your
617+ * business, such as delivery vehicles or employees, you may only use HERE
618+ * as your geolocation provider. See section 82 of the <a
619+ * href="http://aws.amazon.com/service-terms">AWS service terms</a> for more
620+ * details.
621+ * </p>
622+ * </note>
512623 *
513624 * @param createRouteCalculatorRequest
514625 * @return createRouteCalculatorResult The response from the
0 commit comments