Trips
Get Device Active Trip
Check if a single device is currently in motion and get its active trip.
GET
Returns active trip status for a single device based on its latest GPS sample. The
id path parameter accepts either short_id or hardware_id.
Path parameters
string
required
Device identifier — either
short_id or hardware_id.Query parameters
number
default:"300"
Maximum age of latest GPS sample in seconds.
number
default:"14400"
How far back to load GPS history for trip detection.
number
default:"3"
km/h — below this speed is considered stopped.
number
default:"300"
Seconds — minimum moving time to count as a trip.
number
default:"500"
Meters — minimum distance to count as a trip.
number
default:"180"
Seconds — minimum stopped time to end a trip.
number
default:"1800"
Seconds — data gaps longer than this are treated as stops.
number
default:"1"
km/h — minimum average speed to count as a trip.
number
default:"10"
m/s² — filter GPS spikes exceeding this value.
Response
string
required
Device hardware ID.
boolean
required
Whether the device is currently in motion.
object
Present when
active is true. Contains hardware_id, speed, last_position_at, last_position_age_seconds, location, and trip data.object
required
Configuration and parameters used for detection.