Directions

DirectionsService class

google.maps.DirectionsService class

A service for computing directions between two or more places.

Access by calling const {DirectionsService} = await google.maps.importLibrary("routes").
See Libraries in the Maps JavaScript API.

DirectionsService
DirectionsService()
Parameters:  None
Creates a new instance of a DirectionsService that sends directions queries to Google servers.
route
route(request[, callback])
Parameters: 
  • request