![](http://developers.google.com/static/maps/images/landing/hero_directions_api.png)

# Directions API (Legacy)

> [!NOTE]
> This product is in [Legacy status](https://developers.google.com/maps/legacy.md.txt). As of October 2026, Directions API (Legacy) can no longer be enabled for new Google Cloud projects. Existing projects remain fully supported. For new features and improved performance, [migrate to the
> Routes API](https://developers.google.com/maps/documentation/routes/migrate-routes).

Get directions between locations, for driving, cycling, transit, and
walking.

*** ** * ** ***

## Get Started

Start building with the Directions API. [](http://developers.google.com/maps/documentation/directions/cloud-setup.md.txt)

### [Get started with Google Maps Platform](http://developers.google.com/maps/documentation/directions/cloud-setup.md.txt)

Create an account, generate an API key, and start building. [](http://developers.google.com/maps/documentation/directions/get-directions.md.txt)

### [Make your first directions request](http://developers.google.com/maps/documentation/directions/get-directions.md.txt)

Get directions from one place to another, for driving, transit, cycling, and walking. [](http://developers.google.com/maps/documentation/directions/client-library.md.txt)

### [Client libraries](http://developers.google.com/maps/documentation/directions/client-library.md.txt)

Use the Java, Python, Go, or Node.js client libraries to work with Google Maps Services on your server. [](http://developers.google.com/maps/documentation/javascript/directions)

### [Directions in Maps JavaScript API](http://developers.google.com/maps/documentation/javascript/directions)

Add directions functionality to your web pages with the Maps JavaScript API Directions service.

*** ** * ** ***

## Features

Learn about core features of the Directions API.

### [Directions](http://developers.google.com/maps/documentation/directions/get-directions.md.txt)

Request directions from one place to another.

### [Travel mode](http://developers.google.com/maps/documentation/directions/examples.md.txt#TravelModes)

Set the travel mode to get directions for walking, driving, transit, or cycling.

### [Waypoints](http://developers.google.com/maps/documentation/directions/examples.md.txt#Waypoints)

Specify waypoints to return a route that includes stops at intermediate locations.

### [Traffic predictions](http://developers.google.com/maps/documentation/directions/examples.md.txt#DirectionsAdvanced)

Return the time estimate for a route.

### [Location modifiers](http://developers.google.com/maps/documentation/directions/examples.md.txt#location-modifiers)

Specify location modifiers to indicate how drivers should approach a particular location.

### [Alternative routes](http://developers.google.com/maps/documentation/directions/get-directions.md.txt#alternatives)

Instruct the API to return multiple routes, if available.

*** ** * ** ***

## Example apps

Run live code samples on your local machine and favorite code playgrounds with the Maps JavaScript API. [](http://developers.google.com/maps/documentation/javascript/examples/directions-simple.md.txt)

### [Directions service](http://developers.google.com/maps/documentation/javascript/examples/directions-simple.md.txt)

Use the `DirectionsService` object to get directions between places. [](http://developers.google.com/maps/documentation/javascript/examples/directions-panel.md.txt)

### [Text (turn-by-turn) directions](http://developers.google.com/maps/documentation/javascript/examples/directions-panel.md.txt)

Use the `DirectionsRenderer` object to display a directions panel. [](http://developers.google.com/maps/documentation/javascript/examples/directions-waypoints.md.txt)

### [Using waypoints in directions](http://developers.google.com/maps/documentation/javascript/examples/directions-waypoints.md.txt)

Use the `DirectionsService` object to fetch directions for a route, including waypoints. [](http://developers.google.com/maps/documentation/javascript/examples/directions-draggable.md.txt)

### [Draggable directions](http://developers.google.com/maps/documentation/javascript/examples/directions-draggable.md.txt)

Use the `DirectionsService` object to fetch directions between draggable markers. [](http://developers.google.com/maps/documentation/javascript/examples/directions-complex.md.txt)

### [Complex directions](http://developers.google.com/maps/documentation/javascript/examples/directions-complex.md.txt)

Use the `DirectionsService` object to display data along a route.

*** ** * ** ***

## Help \& support

Get help. Give help. Join the community. [![](http://developers.google.com/static/site-assets/logo-stack-overflow.svg)](https://stackoverflow.com/questions/tagged/google-directions-api)

### [Stack Overflow](https://stackoverflow.com/questions/tagged/google-directions-api)

Get help. Give Help. Build Maps karma.
[![](http://developers.google.com/static/maps/images/landing/buganizer.svg)](https://issuetracker.google.com/issues/new?component=188841)

### [Issue Tracker](https://issuetracker.google.com/issues/new?component=188841)

Report a bug or open a feature request.
[![](http://developers.google.com/static/maps/images/landing/warning.svg)](https://status.cloud.google.com/maps-platform/)

### [Platform status](https://status.cloud.google.com/maps-platform/)

Find out about platform incidents and outages.
[![](http://developers.google.com/static/maps/images/landing/help.svg)](http://developers.google.com/maps/documentation/directions/support.md.txt)

### [Support](http://developers.google.com/maps/documentation/directions/support.md.txt)

Get help from the Google Maps Platform team.