Skip to main content

Directions

Directions

Loading the routes library to render directions on the map usingDirectionsService and DirectionsRenderer.

Important: This example is only compatible with the Directions API Legacy Service. Using this Services requires enabling the API on your Google Cloud project by following the direct links: Directions API (Legacy).