To stream real-time positions of your tracking devices, establish a websocket connection as described below.
Once connected, the websocket will stream real-time updates for your tracking devices. The response includes an array of device positions with detailed information.
Copy {
"positions": [
{
"deviceId": "67287d2f8faa08541904202b",
"latitude": 6.524621237465233,
"longitude": 3.3791227887733135,
"altitude": 20.815732174919308,
"speed": 4.240406222849504,
"batteryLife": 67,
"inMotion": true,
"lastTransmittedTime": "2025-02-06T13:08:14.254Z",
"timestamp": 1738847294254
},
{
"deviceId": "6732f2b8fb7ef7628277cfb3",
"latitude": 6.524896331546044,
"longitude": 3.3795500890305465,
"altitude": 17.69065629532697,
"speed": 2.5948568166376718,
"batteryLife": 67,
"inMotion": false,
"lastTransmittedTime": "2025-02-06T13:08:14.254Z",
"timestamp": 1738847294254
}
]
}