The Routes API is currently in Preview (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms. For more information, see the launch stage descriptions.

Try Routes API to compute directions

Stay organized with collections Save and categorize content based on your preferences.

Use this demo to try the Routes API. The demo lets you specify an origin and destination as a latitude/longitude pair or as a place ID. Click a location on the map to copy the latitude/longitude to the clipboard, and then paste the location into the form.

After you select Get directions, the demo displays the response from the computeRoutes method as a route on the map.