Retrieve a list of trips for a device in a given time range. The retention period of trips data is thirty days
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/devices/:imei/trips?start=2020-01-01T14%3A48%3A00.000Z&end=2020-01-01T14%3A48%3A00.000Z&minimumDistance=0.62' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": [
- {
- "start": {
- "accuracy": 4,
- "lat": 32.0598671,
- "lon": 34.7827316,
- "alt": 234.22,
- "time": 1595077872,
- "speed": 22.51
}, - "end": {
- "accuracy": 4,
- "lat": 32.0598671,
- "lon": 34.7827316,
- "alt": 234.22,
- "time": 1595077872,
- "speed": 22.51
}, - "duration": 1427,
- "distance": 31.6,
- "maxSpeed": 30.2,
- "eventsCount": 12
}
]
}