Route APIs - Amazon Location Service

Route APIs

Routes provide capabilities for calculating optimized paths between locations. These features support applications requiring logistics planning, distance calculations, and route optimization. Users can also snap location points to roads for improved accuracy. For more information, See Amazon Location Service Routes.

  • CalculateIsolines: Generates isolines based on travel time or distance, useful for defining service areas or reachability zones. For more information, See Calculate isolines.

  • CalculateRouteMatrix: Provides a matrix of distances and travel times between multiple origins and destinations, supporting logistics and trip planning. For more information, See Calculate route matrix.

  • CalculateRoutes: Calculates optimized routes for point-to-point or multi-stop navigation, including customizable routing preferences. For more information, See Calculate routes.

  • OptimizeWaypoints: Optimizes the order of waypoints for the most efficient travel route, minimizing distance or time. For more information, See Optimize waypoints.

  • SnapToRoads: Aligns coordinates to the nearest road paths, enhancing GPS accuracy by snapping points to known roads. For more information, See Snap to Roads.

The following table presents a number of business use cases that are best solved with Routes APIs.

Business need

Useful API

Examples

Calculate the travel distance and time for a origins and a destination

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find route polyline for a origins and a destination

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find routes turn by turn direction for an origin and a destination

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find a route by departing now

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find a route if you depart at specific time

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find a route if you need to arrival at specific time

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find shortest routes

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find fastest routes

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find alternative routes

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find traffic aware routes

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find routes with avoidance such as toll, u-turn, ferry, highway, tunnel, and more

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Find routes with custom avoidance by passing polyline or polygon

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Calculate toll cost

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Calculate toll cost

Find speed limit of a road span on a route

Supports the following:
  • travel modes, such as truck, pedestrian, car, and scooter

  • up to 25 waypoints (stop overs), including origin and destination

  • driving resting time

CalculateRoutes

Draw a route on a map

Supports waypoint marking.

GetTile and GetStyleDescriptor with rendering engine (MapLibre) with Calculate route

Calculate route matrix of distance and time for multiple origins and destinations

Supports the following:
  • more than 100K cells

  • travel modes, such as truck, pedestrian, car, and scooter

CalculateRouteMatrix

How to calculate a route matrix of distance and time for multiple origins and destinations

Calculate route matrix with avoidance

Supports the following:
  • more than 100K cells

  • travel modes, such as truck, pedestrian, car, and scooter

CalculateRouteMatrix

How to calculate route matrix with avoidance

Calculate a service area based on time (isochrones)

Supports travel modes, such as truck, pedestrian, car, and scooter.

CalculateIsoline

How to calculate a service area based on ranges of time

Calculate a service area based on distance (isodistance)

Supports travel modes, such as truck, pedestrian, car, and scooter.

CalculateIsoline

Calculate a service area with avoidance

Supports travel modes, such as truck, pedestrian, car, and scooter.

CalculateIsoline

Calculate a service area from reverse direction

Supports travel modes, such as truck, pedestrian, car, and scooter.

CalculateIsoline

Calculate service area for multi-range of time or distance

Supports travel modes, such as truck, pedestrian, car, and scooter.

CalculateIsoline

Optimize waypoints for routes (traveling salesman problem)

Supports travel modes, such as truck, pedestrian, car, and scooter.

OptimizeWaypoint

How to optimize waypoints for a route

Optimize waypoints for a route with traffic awareness

Supports travel modes, such as truck, pedestrian, car, and scooter.

OptimizeWaypoint

Optimize waypoints for a route with access hour awareness

Supports travel modes, such as truck, pedestrian, car, and scooter.

OptimizeWaypoint

Match GPS traces to road network

Supports travel modes, such as truck, pedestrian, car, and scooter.

Snap to road

How to match GPS traces to a road network

Visualize matched GPS traces on a map

Supports travel modes, such as truck, pedestrian, car, and scooter.

GetStyleDescriptor with rendering engine (MapLibre) with Snap to road