Services
Distance matrix API
Send origins and destinations, get a table of durations and distances. Use it to feed your own solver or to rank nearest candidates.
One third of Google's bill. $1.60 vs $5.00 per 1,000 elements
Example: 300,000 elements a month. Google $1,250, us $404. You save $846 a month.
Example
Endpoint POST /matrix
Request
curl https://api.argamin.ai/v1/matrix \
-H "Authorization: Bearer am_test_..." \
-H "Content-Type: application/json" \
-d '{
"origins": [
{
"lat": 51.5072,
"lng": -0.1276
},
{
"lat": 51.5155,
"lng": -0.0922
}
],
"destinations": [
{
"lat": 51.5033,
"lng": -0.1196
}
],
"annotations": [
"duration",
"distance"
]
}' Response
{
"durations": [
[
420
],
[
610
]
],
"distances": [
[
2900
],
[
4300
]
],
"request_id": "req_2b9d6f1e0c8a4e7f9a3b5c7d1e2f4a6b"
} Limits
- Synchronous up to 10,000 elements (origins times destinations)
- Billed per element, only on success
- Road-network durations without live traffic
Price
Distance matrix: $1.60 per 1,000 elements, 10,000 free every month. Google charges $5.00 (32%-34%).
See all prices · Read the guide| Service | Unit | Free / month | 0 - 100K | 100K - 500K | 500K - 1M | 1M - 5M | 5M+ |
|---|---|---|---|---|---|---|---|
| Distance matrix | element | 10,000 | $1.60 | $1.30 | $1.00 | $0.50 | $0.13 |
A good fit
Dispatch screens that rank drivers by drive time, and teams that run their own optimizer and need a fast table.
Not the right tool
Matrix-only workloads at low volume. Mapbox includes a large free quota and is cheaper there. We sell the matrix mostly next to optimization.