Mapbox Matrix is a paid API for AI agents from Mapbox at mapbox.mpp.paywithlocus.com, paid per call via MPP, $0.002/element (dynamic), status unknown (last checked 2026-10-10).
Computes travel durations and/or distances between multiple origin and destination coordinate pairs using a specified routing profile
Calculate travel time and distance between many origins and destinations. Billed per element (sources × destinations).
Returns a matrix of travel durations (in seconds) and/or distances (in meters) between all requested source and destination coordinate pairs, along with the routing profile used and the snapped waypoint locations.
POSThttps://mapbox.mpp.paywithlocus.com/mapbox/matrix?utm_source=zero.xyzUse this endpoint when you need to compute travel times or distances between multiple origin-destination pairs simultaneously, especially for logistics, fleet routing, nearest-facility problems, or any scenario requiring an O(m×n) travel cost matrix. It is far more efficient than calling the Directions endpoint repeatedly for each pair.
{
"profile": "mapbox/driving",
"annotations": "duration,distance",
"coordinates": "-87.6298,41.8781;-87.6234,41.8827;-87.6412,41.8690"
}| Field | Type | Description |
|---|---|---|
| profilerequired | string | Routing profile: mapbox/driving, mapbox/driving-traffic, mapbox/walking, mapbox/cycling |
| sources | string | Semicolon-separated indices for source coordinates (for asymmetric matrices) |
| approaches | string | Semicolon-separated approach per coordinate: unrestricted or curb |
| annotations | string | Comma-separated: duration, distance (or both) |
| coordinatesrequired | string | Semicolon-separated lon,lat pairs (2-25, max 10 for traffic) |
| destinations | string | Semicolon-separated indices for destination coordinates |
{
"data": {
"code": "Ok",
"sources": [
{
"name": "South Federal Street",
"distance": 2.40743484,
"location": [
-87.629771,
41.8781
]
},
{
"name": "",
"distance": 57.7300495,
"location": [
-87.624095,
41.882718
]
},
{
"name": "West DeKoven Street",
"distance": 0.555346471,
"location": [
-87.6412,
41.869005
]
}
],
"distances": [
[
0,
985.1,
2931.8
],
[
1243,
0,
3918.7
],
[
1985.2,
3337,
0
]
],
"durations": [
[
0,
244,
379
],
[
317.1,
0,
564.3
],
[
388.3,
585.3,
0
]
],
"destinations": [
{
"name": "South Federal Street",
"distance": 2.40743484,
"location": [
-87.629771,
41.8781
]
},
{
"name": "",
"distance": 57.7300495,
"location": [
-87.624095,
41.882718
]
},
{
"name": "West DeKoven Street",
"distance": 0.555346471,
"location": [
-87.6412,
41.869005
]
}
]
},
"success": true
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"