The Directions API provides a simple interface to get routing, narrative, and shapes.
The core and most basic function of our Directions API. Route provides information on how to get from point A to point B, or points C, D and E. Quite simply, it shows you and your users how to get where they are going.
/directions/v2/route
/directions/v2/route
view requests, see results
The Optimized Route function allows users to customize their route experience to their preferences, including the quickest drive time, the shortest drive distance, or even how long it would take to walk instead of driving. The origin and destination locations remain fixed, but the route is ordered to find the optimal path.
/directions/v2/optimizedroute
/directions/v2/optimizedroute
view requests, see results
The Route Matrix function enables the user to see the times and distance between locations. Want to know how many miles it is between Denver and Chicago? Need to know how long it will take to drive from your home/office to a store? Route matrix provides this information.
The Alternate Routes function allows users to request multiple potential routes between two locations.
/directions/v2/alternateroutes
/directions/v2/alternateroutes
view requests, see results
The Route Shape function provides a visual indicator (a shape) of a previously requested route between any number of points. Generally, this is a line leading from location to location.
The Drag Route function allows users to adjust their route "on the fly," by dragging the route to add new location or a new road.
The Path from Route function provides the times/distances needed to reach a set of locations from an existing route.
The Find Link ID function allows users to easily find the linkId
of a road,
which can then be supplied for the
mustAvoidLinkIds
and tryAvoidLinkIds
route options.