Services
Route (directions) API
A route between an origin and a destination with optional intermediate points. Returns geometry, distance and duration.
One third of Google's bill. $1.60 vs $5.00 per 1,000 requests
Example: 50,000 requests a month. Google $200, us $64. You save $136 a month.
Example
Endpoint POST /route
Request
curl https://api.argamin.ai/v1/route \
-H "Authorization: Bearer am_test_..." \
-H "Content-Type: application/json" \
-d '{
"waypoints": [
{
"lat": 51.5072,
"lng": -0.1276
},
{
"lat": 51.5155,
"lng": -0.0922
}
],
"geometry": "polyline6"
}' Response
{
"distance": 4900,
"duration": 880,
"geometry": "<encoded polyline6 string>",
"legs": [
{
"distance": 4900,
"duration": 880
}
],
"request_id": "req_2b9d6f1e0c8a4e7f9a3b5c7d1e2f4a6b"
} Limits
- 2 to 25 waypoints per request
- GET or POST
- Billed per request, only on success
- Road-network durations without live traffic
Price
Route: $1.60 per 1,000 requests, 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+ |
|---|---|---|---|---|---|---|---|
| Route | request | 10,000 | $1.60 | $1.30 | $1.00 | $0.50 | $0.13 |
A good fit
Showing the planned path of a stop sequence on a map, and ETAs based on typical driving speeds.
Not the right tool
Routes that must reflect live congestion. Use a provider with traffic data for that.