Calculate cost matrix
Calculate a cost matrix for the given locations and travel costs. This is useful for calculating travel durations and distances between locations.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
Locationsarray · requiredThe locations to use for calculating the cost matrix.
CostSettingsrequiredThis schema defines the settings to use for calculating travel costs between locations. It includes the cost metric (duration or distance), cost multiplier, cost adder, and methods for calculating distances and durations.
TravelCostsarrayThe travel costs to use for calculating the cost matrix. If not provided, the cost matrix will be calculated automatically based on the latitude and longitude of the locations. A partial cost matrix can be provided to avoid recalculating travel durations and distances between locations.
Responses
Cost matrix calculated successfully
