Live traffic topic
Subscribing to the "live-traffic" topic a JSON with live traffic telemetry will be received every 0.5s
TOPIC live-traffic
caution
After a connection is correctly established you need to subscribe to the socket but also set the boundaries from where you want to get data. If the boundaries are not set the result will be an empty array
Data reeived:
ARRAY
[
{
altitude: 10363.2,
heading: 208.13,
hor_velocity: 176.76,
icao: "300393",
latitude: 46.913576287738344,
longitude: 11.007103465708497,
onGround: false,
rigisource: "involi",
source: "transponder",
timestamp: 1698941968579,
vel_velocity: -2.6
}
]
Js example:
socket.on("live-traffic", data => {
console.debug("live-traffic", data);
}