Developer Documentation v1.0
Drayroute API Reference
Integrate high-performance route calculation, geocoding, and spatial matrix intelligence into your software.
Getting StartedAPI Endpoints
Authentication
The Drayroute API uses Bearer Tokens to authenticate requests. You can pass your secret key in the Authorization HTTP header.
Authorization: Bearer dr_live_9a8b7c6d5e4f3a2b
Quickstart Example
curl -X POST https://api.drayroute.com/v1/routes \
-H "Authorization: Bearer dr_live_9a8b7c6d5e4f3a2b" \
-H "Content-Type: application/json" \
-d '{
"origin": "37.7749,-122.4194",
"destination": "37.7881,-122.4022",
"mode": "driving",
"avoid_tolls": false
}'POST
/v1/routes
Calculates optimal route polyline, distance in kilometers, estimated duration, and step-by-step navigation instructions.
