Convert and process tabular data
Calculate a cost matrix for the given locations
Calculate a cost matrix for the given locations and travel costs. This is useful for calculating travel durations and distances between locations.
Request Body
Locationsarray · requiredThe locations to use for calculating the cost matrix.
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.
costSettingsThis 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.
Responses
Cost matrix calculated successfully
