Distance Matrix
Compute a matrix of travel distances and durations between multiple origins and destinations. Returns pairwise distance and duration values for route planning and optimization.
Optimal Planning
The distance matrix is essential for logistics and dispatching. It allows you to quickly find the nearest driver or service point across the road network.Request Body
coordinates: A list of all unique points involved.sources: Indices into thecoordinateslist for start points.destinations: Indices into thecoordinateslist for end points.
Note on Large Requests
The maximum number of source-destination pairs in a single request is limited. Contact us if you need to perform high-volume computations.Authorizations
JWT Bearer token for authentication. Example: "Bearer YOUR_API_TOKEN_HERE"
Body
Coordinates with source and destination indices
Coordinates with source and destination indices
List of geographic coordinates (at least one required)
Zero-based indices into coordinates identifying destination points. If omitted, all coordinates are used as destinations.
Zero-based indices into coordinates identifying source points. If omitted, all coordinates are used as sources.
