Amazon Location Service
    • /tracking/v0/trackers/{TrackerName}/consumers
      POST
    • /tracking/v0/trackers/{TrackerName}/delete-positions
      POST
    • /geofencing/v0/collections/{CollectionName}/delete-geofences
      POST
    • /geofencing/v0/collections/{CollectionName}/positions
      POST
    • /tracking/v0/trackers/{TrackerName}/get-positions
      POST
    • /geofencing/v0/collections/{CollectionName}/put-geofences
      POST
    • /tracking/v0/trackers/{TrackerName}/positions
      POST
    • /routes/v0/calculators/{CalculatorName}/calculate/route
      POST
    • /geofencing/v0/collections
      POST
    • /maps/v0/maps
      POST
    • /places/v0/indexes
      POST
    • /routes/v0/calculators
      POST
    • /tracking/v0/trackers
      POST
    • /geofencing/v0/collections/{CollectionName}
      DELETE
    • /geofencing/v0/collections/{CollectionName}
      GET
    • /geofencing/v0/collections/{CollectionName}
      PATCH
    • /maps/v0/maps/{MapName}
      DELETE
    • /maps/v0/maps/{MapName}
      GET
    • /maps/v0/maps/{MapName}
      PATCH
    • /places/v0/indexes/{IndexName}
      DELETE
    • /places/v0/indexes/{IndexName}
      GET
    • /places/v0/indexes/{IndexName}
      PATCH
    • /routes/v0/calculators/{CalculatorName}
      DELETE
    • /routes/v0/calculators/{CalculatorName}
      GET
    • /routes/v0/calculators/{CalculatorName}
      PATCH
    • /tracking/v0/trackers/{TrackerName}
      DELETE
    • /tracking/v0/trackers/{TrackerName}
      GET
    • /tracking/v0/trackers/{TrackerName}
      PATCH
    • /tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}
      DELETE
    • /tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest
      GET
    • /tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions
      POST
    • /geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}
      GET
    • /geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}
      PUT
    • /maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}
      GET
    • /maps/v0/maps/{MapName}/sprites/{FileName}
      GET
    • /maps/v0/maps/{MapName}/style-descriptor
      GET
    • /maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}
      GET
    • /tracking/v0/trackers/{TrackerName}/list-positions
      POST
    • /geofencing/v0/list-collections
      POST
    • /geofencing/v0/collections/{CollectionName}/list-geofences
      POST
    • /maps/v0/list-maps
      POST
    • /places/v0/list-indexes
      POST
    • /routes/v0/list-calculators
      POST
    • /tags/{ResourceArn}
      GET
    • /tags/{ResourceArn}
      POST
    • /tracking/v0/trackers/{TrackerName}/list-consumers
      POST
    • /tracking/v0/list-trackers
      POST
    • /places/v0/indexes/{IndexName}/search/position
      POST
    • /places/v0/indexes/{IndexName}/search/text
      POST
    • /tags/{ResourceArn}
      DELETE
    • Schemas
      • Schemas
        • AssociateTrackerConsumerResponse
        • InternalServerException
        • ResourceNotFoundException
        • ConflictException
        • AccessDeniedException
        • ValidationException
        • ServiceQuotaExceededException
        • ThrottlingException
        • BatchDeleteDevicePositionHistoryResponse
        • Id
        • BatchDeleteGeofenceResponse
        • BatchEvaluateGeofencesResponse
        • DevicePositionUpdate
        • BatchGetDevicePositionResponse
        • BatchPutGeofenceResponse
        • BatchPutGeofenceRequestEntry
        • BatchUpdateDevicePositionResponse
        • CalculateRouteResponse
        • Boolean
        • Double
        • TruckDimensions
        • TruckWeight
        • Position
        • CreateGeofenceCollectionResponse
        • TagValue
        • CreateMapResponse
        • MapStyle
        • CreatePlaceIndexResponse
        • IntendedUse
        • CreateRouteCalculatorResponse
        • CreateTrackerResponse
        • DeleteGeofenceCollectionResponse
        • DeleteMapResponse
        • DeletePlaceIndexResponse
        • DeleteRouteCalculatorResponse
        • DeleteTrackerResponse
        • DescribeGeofenceCollectionResponse
        • DescribeMapResponse
        • DescribePlaceIndexResponse
        • DescribeRouteCalculatorResponse
        • DescribeTrackerResponse
        • DisassociateTrackerConsumerResponse
        • GetDevicePositionResponse
        • GetDevicePositionHistoryResponse
        • GetGeofenceResponse
        • GetMapGlyphsResponse
        • GetMapSpritesResponse
        • GetMapStyleDescriptorResponse
        • GetMapTileResponse
        • ListDevicePositionsResponse
        • ListGeofenceCollectionsResponse
        • ListGeofencesResponse
        • ListMapsResponse
        • ListPlaceIndexesResponse
        • ListRouteCalculatorsResponse
        • ListTagsForResourceResponse
        • ListTrackerConsumersResponse
        • ListTrackersResponse
        • PutGeofenceResponse
        • LinearRings
        • SearchPlaceIndexForPositionResponse
        • SearchPlaceIndexForTextResponse
        • CountryCode
        • TagResourceResponse
        • UntagResourceResponse
        • String
        • UpdateGeofenceCollectionResponse
        • UpdateMapResponse
        • UpdatePlaceIndexResponse
        • UpdateRouteCalculatorResponse
        • UpdateTrackerResponse
        • Arn
        • ArnList
        • ResourceName
        • AssociateTrackerConsumerRequest
        • BatchItemError
        • BatchDeleteDevicePositionHistoryError
        • BatchDeleteDevicePositionHistoryErrorList
        • BatchDeleteDevicePositionHistoryRequestDeviceIdsList
        • BatchDeleteDevicePositionHistoryRequest
        • BatchDeleteGeofenceError
        • BatchDeleteGeofenceErrorList
        • BatchDeleteGeofenceRequestGeofenceIdsList
        • BatchDeleteGeofenceRequest
        • Timestamp
        • BatchEvaluateGeofencesError
        • BatchEvaluateGeofencesErrorList
        • BatchEvaluateGeofencesRequestDevicePositionUpdatesList
        • BatchEvaluateGeofencesRequest
        • BatchGetDevicePositionError
        • BatchGetDevicePositionErrorList
        • BatchGetDevicePositionRequestDeviceIdsList
        • BatchGetDevicePositionRequestTrackerNameString
        • BatchGetDevicePositionRequest
        • DevicePositionList
        • BatchItemErrorCode
        • BatchPutGeofenceError
        • BatchPutGeofenceErrorList
        • BatchPutGeofenceRequestEntriesList
        • BatchPutGeofenceRequest
        • GeofenceGeometry
        • BatchPutGeofenceSuccessList
        • BatchPutGeofenceSuccess
        • BatchUpdateDevicePositionError
        • BatchUpdateDevicePositionErrorList
        • BatchUpdateDevicePositionRequestUpdatesList
        • BatchUpdateDevicePositionRequest
        • Blob
        • BoundingBox
        • CalculateRouteCarModeOptions
        • DistanceUnit
        • TravelMode
        • CalculateRouteTruckModeOptions
        • CalculateRouteRequestWaypointPositionsList
        • CalculateRouteRequest
        • LegList
        • CalculateRouteSummary
        • CalculateRouteSummaryDistanceDouble
        • CalculateRouteSummaryDurationSecondsDouble
        • CountryCodeList
        • ResourceDescription
        • KmsKeyId
        • PricingPlan
        • TagMap
        • CreateGeofenceCollectionRequest
        • MapConfiguration
        • CreateMapRequest
        • DataSourceConfiguration
        • CreatePlaceIndexRequest
        • CreateRouteCalculatorRequest
        • CreateTrackerRequest
        • DeleteGeofenceCollectionRequest
        • DeleteMapRequest
        • DeletePlaceIndexRequest
        • DeleteRouteCalculatorRequest
        • DeleteTrackerRequest
        • DescribeGeofenceCollectionRequest
        • DescribeMapRequest
        • DescribePlaceIndexRequest
        • DescribeRouteCalculatorRequest
        • DescribeTrackerRequest
        • DevicePosition
        • DimensionUnit
        • DisassociateTrackerConsumerRequest
        • Token
        • GetDevicePositionHistoryRequest
        • GetDevicePositionRequest
        • GetGeofenceRequest
        • GetMapGlyphsRequestFontUnicodeRangeString
        • GetMapGlyphsRequest
        • GetMapSpritesRequestFileNameString
        • GetMapSpritesRequest
        • GetMapStyleDescriptorRequest
        • GetMapTileRequestXString
        • GetMapTileRequestYString
        • GetMapTileRequestZString
        • GetMapTileRequest
        • LegDistanceDouble
        • LegDurationSecondsDouble
        • LegGeometry
        • StepList
        • Leg
        • LineString
        • LinearRing
        • ListDevicePositionsRequestMaxResultsInteger
        • ListDevicePositionsRequest
        • ListDevicePositionsResponseEntryList
        • ListDevicePositionsResponseEntry
        • ListGeofenceCollectionsRequestMaxResultsInteger
        • ListGeofenceCollectionsRequest
        • ListGeofenceCollectionsResponseEntryList
        • ListGeofenceCollectionsResponseEntry
        • ListGeofenceResponseEntry
        • ListGeofenceResponseEntryList
        • ListGeofencesRequest
        • ListMapsRequestMaxResultsInteger
        • ListMapsRequest
        • ListMapsResponseEntryList
        • ListMapsResponseEntry
        • ListPlaceIndexesRequestMaxResultsInteger
        • ListPlaceIndexesRequest
        • ListPlaceIndexesResponseEntryList
        • ListPlaceIndexesResponseEntry
        • ListRouteCalculatorsRequestMaxResultsInteger
        • ListRouteCalculatorsRequest
        • ListRouteCalculatorsResponseEntryList
        • ListRouteCalculatorsResponseEntry
        • ListTagsForResourceRequest
        • ListTrackerConsumersRequestMaxResultsInteger
        • ListTrackerConsumersRequest
        • ListTrackersRequestMaxResultsInteger
        • ListTrackersRequest
        • ListTrackersResponseEntryList
        • ListTrackersResponseEntry
        • PlaceGeometry
        • Place
        • PlaceIndexSearchResultLimit
        • PutGeofenceRequest
        • SearchForPositionResult
        • SearchForPositionResultList
        • SearchForTextResult
        • SearchForTextResultList
        • SearchPlaceIndexForPositionRequest
        • SearchPlaceIndexForPositionSummary
        • SyntheticSearchPlaceIndexForTextRequestString
        • SearchPlaceIndexForTextRequest
        • SearchPlaceIndexForTextSummary
        • SyntheticSearchPlaceIndexForTextSummaryString
        • StepDistanceDouble
        • StepDurationSecondsDouble
        • StepGeometryOffsetInteger
        • Step
        • TagKey
        • TagKeys
        • TagResourceRequest
        • TruckDimensionsHeightDouble
        • TruckDimensionsLengthDouble
        • TruckDimensionsWidthDouble
        • TruckWeightTotalDouble
        • VehicleWeightUnit
        • UntagResourceRequest
        • UpdateGeofenceCollectionRequest
        • UpdateMapRequest
        • UpdatePlaceIndexRequest
        • UpdateRouteCalculatorRequest
        • UpdateTrackerRequest

      /routes/v0/calculators/{CalculatorName}/calculate/route

      The Amazon Location Service multi-region endpoint
      http://geo.{region}.amazonaws.com
      The Amazon Location Service multi-region endpoint
      http://geo.{region}.amazonaws.com
      POST
      /routes/v0/calculators/{CalculatorName}/calculate/route
      Calculates a route given the following required parameters: DeparturePostiton and DestinationPosition. Requires that you first create a route calculator resource
      By default, a request that doesn't specify a departure time uses the best time of day to travel with the best traffic conditions when calculating the route.
      Additional options include:
      • Specifying a departure time using either DepartureTime or DepartureNow. This calculates a route based on predictive traffic data at the given time.
      • Specifying a travel mode using TravelMode. This lets you specify an additional route preference such as CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck.

      Request

      Path Params

      Body Params application/json

      Examples

      Responses

      🟢200Success
      application/json
      Body

      🟠480InternalServerException
      🟠481ResourceNotFoundException
      🟠482AccessDeniedException
      🟠483ValidationException
      🟠484ThrottlingException
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request POST 'http://geo.{region}.amazonaws.com/routes/v0/calculators//calculate/route' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "CarModeOptions": {
              "AvoidFerries": true,
              "AvoidTolls": true
          },
          "DepartNow": true,
          "DeparturePosition": [
              0,
              0
          ],
          "DepartureTime": "2019-08-24T14:15:22.123Z",
          "DestinationPosition": [
              0,
              0
          ],
          "DistanceUnit": "Kilometers",
          "IncludeLegGeometry": true,
          "TravelMode": "Car",
          "TruckModeOptions": {
              "AvoidFerries": true,
              "AvoidTolls": true,
              "Dimensions": {
                  "Height": 0,
                  "Length": 0,
                  "Unit": "Meters",
                  "Width": 0
              },
              "Weight": {
                  "Total": 0,
                  "Unit": "Kilograms"
              }
          },
          "WaypointPositions": [
              [
                  0,
                  0
              ]
          ]
      }'
      Response Response Example
      200 - Example 1
      {
          "Legs": [],
          "Summary": {
              "DataSource": "string",
              "Distance": 0,
              "DistanceUnit": "Kilometers",
              "DurationSeconds": 0,
              "RouteBBox": []
          }
      }
      Modified at 2022-09-10 19:59:22
      Previous
      /tracking/v0/trackers/{TrackerName}/positions
      Next
      /geofencing/v0/collections
      Built with