Directions API (Legacy)

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


Get Started

Start building with the Directions API.

Get started with Google Maps Platform

Create an account, generate an API key, and start building.

Make your first directions request

Get directions from one place to another, for driving, transit, cycling, and walking.

Client libraries

Use the Java, Python, Go, or Node.js client libraries to work with Google Maps Services on your server.

Directions in Maps JavaScript API

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

Features

Learn about core features of the Directions API.

Directions

Request directions from one place to another.

Travel mode

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

Waypoints

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

Traffic predictions

Return the time estimate for a route.

Location modifiers

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

Alternative routes

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.

Directions service

Use theDirectionsService object to get directions between places.

Text (turn-by-turn) directions

Use theDirectionsRenderer object to display a directions panel.

Using waypoints in directions

Use theDirectionsService object to fetch directions for a route, including waypoints.

Draggable directions

Use theDirectionsService object to fetch directions between draggable markers.

Complex directions

Use theDirectionsService object to display data along a route.

Help & support

Get help. Give help. Join the community.

Stack Overflow

Get help. Give Help. Build Maps karma.

Issue Tracker

Report a bug or open a feature request.

Platform status

Find out about platform incidents and outages.

Support

Get help from the Google Maps Platform team.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-27 UTC.