API reference

Distance / time matrix

POST /v1/matrix

Computes a many-to-many distance and travel time matrix between source and target locations. Trucks are calculated at no more than 90 km/h. For long truck pairs (roughly over 4 hours of driving) that the engine cannot time at that speed, the time is estimated from the unrestricted route and the cell carries time_estimated: true.

Parameters

sources array of object, required
targets array of object, required
costing auto | truck | bicycle | pedestrian | motorcycle | motor_scooter | bus | taxi
Vehicle/costing model for routing Default: "auto".

Price

See the price of /v1/matrix on the pricing page.

Related endpoints