Methods
static getDistanceMatrix(args) → {Promise.<DistanceMatrixResult>}
Gets a matrix of distances between locations
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
Object | ||
graphId |
string | Id of the network graph to use for the calculation. | |
origins |
Array.<string> | List of origins 'latitude,longitude,floor' pairs seperated by | | |
destinations |
Array.<string> | List of destinations 'latitude,longitude,floor' pairs seperated by | | |
travelMode |
string |
<optional> |
Which form of transportation should be used. |
avoid |
string |
<optional> |
Specify highway types to avoid. Supported types are: `steps` |
userRoles |
Array.<string> |
<optional> |
List of app user roles. |
Promise.<DistanceMatrixResult>