Members
Methods
# getDistanceMatrix(args) → {DistanceMatrixResult}
Returns a matrix with distance and duration for routes from all origins to all destinations.
Parameters:
Name | Type | Description |
---|---|---|
args |
Object
|
|
origins |
Array:.<LatLng:>
|
|
destinations |
Array:.<LatLng:>
|
|
travelMode |
string
|
# getRoute(args) → {DirectionsProviderResult}
Returns a route between two locations.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
Object
|
google.maps.DirectionsRequest | |
origin |
LatLngLike
|
||
destination |
LatLngLike
|
||
travelMode |
string
|
||
transitOptions |
Object
|
<optional> |
google.maps.TransitOptions |
DirectionsProviderResult