Distance Matrix & Routing
Free tierTravel time and turn-by-turn routes for fleets.
About this API
Distances and durations for every origin-destination pair in one request, with live traffic, vehicle profiles for trucks and motorcycles, road restrictions, and multi-stop optimisation that respects time windows and capacity.
Common use cases
Quickstart
Every Zephiel API uses the same base URL, the same key header, and the same error envelope.
curl -X GET "https://zephiel.com/api/v1/distance-matrix/matrix" \
-H "X-Zephiel-Key: $ZEPHIEL_API_KEY" \
-H "Accept: application/json"Example response
{
"origins": 2,
"destinations": 3,
"durations_seconds": [[0, 1840, 2610], [1795, 0, 1120]],
"distances_metres": [[0, 9840, 14210], [9760, 0, 6180]],
"traffic": "live"
}/v1/distance-matrix/matrixDurations for every origin-destination pair/v1/distance-matrix/routeTurn-by-turn directions/v1/distance-matrix/optimiseOrder stops for the shortest tour/v1/distance-matrix/isochroneArea reachable within a time budgetAll endpoints return JSON and accept the X-Zephiel-Key header. Rate limits are enforced per plan and reported in X-RateLimit-Remaining.
Plans can be changed or cancelled at any time. Overage is charged per 1,000 requests rather than hard-blocking your traffic.
Free
100 elements/mo
5 req/min
Free
- JSON output format — included
- HTTPS encryption — included
- API key authentication — included
- Standard endpoints — included
- Community support — included
- CSV output format — not included
- Email support — not included
- Usage analytics and alerts — not included
- 99.9% uptime SLA — not included
- Webhooks — not included
- Priority support — not included
- Custom rate limits — not included
- 99.99% uptime SLA — not included
- Dedicated success manager — not included
- SSO / SAML — not included
- Custom SLA, DPA, and BAA — not included
- Private deployment option — not included
- Volume pricing — not included
Starter
10,000 elements/mo
60 req/min
$23/month
- JSON output format — included
- HTTPS encryption — included
- API key authentication — included
- Standard endpoints — included
- Community support — included
- CSV output format — included
- Email support — included
- Usage analytics and alerts — included
- 99.9% uptime SLA — included
- Webhooks — not included
- Priority support — not included
- Custom rate limits — not included
- 99.99% uptime SLA — not included
- Dedicated success manager — not included
- SSO / SAML — not included
- Custom SLA, DPA, and BAA — not included
- Private deployment option — not included
- Volume pricing — not included
Most popular
Pro
250,000 elements/mo
600 req/min
$92/month
- JSON output format — included
- HTTPS encryption — included
- API key authentication — included
- Standard endpoints — included
- Community support — included
- CSV output format — included
- Email support — included
- Usage analytics and alerts — included
- 99.9% uptime SLA — included
- Webhooks — included
- Priority support — included
- Custom rate limits — included
- 99.99% uptime SLA — included
- Dedicated success manager — not included
- SSO / SAML — not included
- Custom SLA, DPA, and BAA — not included
- Private deployment option — not included
- Volume pricing — not included
Enterprise
Unlimited elements
Custom
$322/month
- JSON output format — included
- HTTPS encryption — included
- API key authentication — included
- Standard endpoints — included
- Community support — included
- CSV output format — included
- Email support — included
- Usage analytics and alerts — included
- 99.9% uptime SLA — included
- Webhooks — included
- Priority support — included
- Custom rate limits — included
- 99.99% uptime SLA — included
- Dedicated success manager — included
- SSO / SAML — included
- Custom SLA, DPA, and BAA — included
- Private deployment option — included
- Volume pricing — included
4.8
12 reviews
Lin Zhao
Backend Developer
Errors are actually readable
When something goes wrong Distance Matrix & Routing says what and why, with a code I can branch on. I have integrated optimisation services that return 200 with an error buried in the body, so this is a relief.
Fatima Bello
Operations Director
Held up under real load
We push Distance Matrix & Routing hard during peak and latency has stayed flat. No throttling surprises, no silent degradation — the numbers on the listing matched what we measured.
Pieter de Vries
Staff Engineer
Good coverage for routing
We checked Distance Matrix & Routing against our own routing reference data before committing. Coverage was better than the incumbent we were paying four times as much for.
Olamide Fashola
Technical Lead
Documentation matched reality
Every sample in the Distance Matrix & Routing docs ran unmodified. That sounds like a low bar until you have integrated something where it is not.
Isabella Ferreira
Software Engineer
Now handles accurate customer etas too
We adopted Distance Matrix & Routing for delivery route optimisation and ended up using it for accurate customer etas as well. Same key, no new contract, no second integration.
Arjun Patel
Senior Engineer
Support answered properly
Asked Northwind Data about an edge case in Distance Matrix & Routing and got an explanation from someone who had clearly read the code, not a link to the FAQ.
Sarah Whitfield
Founder
Quietly reliable
Distance Matrix & Routing has not surprised us once in eight months of production traffic. That is the highest compliment I can pay a dependency.
Ngozi Eze
Systems Analyst
One key made the difference
Adding Distance Matrix & Routing took ten minutes because the credential already existed. The vendor onboarding we skipped would have taken longer than the integration.
Related APIs in Location & Geo
IP Intelligence
Free tierZephiel Labs
Geolocate any IPv4 or IPv6 address with carrier and threat context.
Geocoding & Places
Free tierNorthwind Data
Turn addresses into coordinates and back again.
Timezone
Free tierZephiel Labs
IANA timezones, offsets, and DST transitions anywhere on earth.