Skip to main content
GET
Get route and distance

Authorizations

Authorization
string
header
required

Your Graviton API token. Send Authorization: Bearer YOUR_API_TOKEN or Authorization: YOUR_API_TOKEN. Each token has individual permissions; a valid token without the permission required by the method and route returns 403 TOKEN_PERMISSION_DENIED.

Path Parameters

imei
string
required
Pattern: ^[A-Za-z0-9_-]{1,20}$

Query Parameters

limit
integer
default:5000

Maximum location points used in this calculation. Split the time range if truncated is true.

Required range: 1 <= x <= 10000
from
string<date-time>
required
to
string<date-time>
required

Response

Successful response

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object