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.
Constructor | |
|---|---|
DirectionsService |
DirectionsService()Parameters: None
Creates a new instance of a DirectionsService that sends directions queries to Google servers. |
Methods | |
|---|---|
route |
route(request[, callback])Parameters:
|