google-maps-documentation

DirectionsService class

google.maps.DirectionsService class

A service for computing directions between two or more places.

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: 
Return Value:  None
Issue a directions search request.