XPPlanes
X-Plane plugin to display additional planes based on network data
FD_XPPTraffic.cpp File Reference

XPPTraffic data format, a JSON format specifically designed for XPPlanes. More...

#include "XPPlanes.h"

Detailed Description

XPPTraffic data format, a JSON format specifically designed for XPPlanes.

A flight data record in XPPTraffic format looks like this:

{
"id" : 4711,
"ident" : {
"airline" : "DLH",
"reg" : "D-EVEL",
"call" : "DLH1234",
"label" : "Test Flight"
},
"type" : {
"icao" : "C172",
"wingSpan" : 11.1,
"wingArea" : 16.2
},
"position" : {
"lat" : 51.406292,
"lon" : 6.939847,
"alt_geo" : 407,
"gnd" : true
},
"attitude" : {
"roll" : -0.2,
"heading" : 42,
"pitch" : 0.1
},
"config" : {
"mass" : 1037.6,
"lift" : 10178.86,
"gear" : 1,
"noseWheel" : -2.5,
"flaps" : 0.5,
"spoiler" : 0,
"reversers" : 0,
"thrust" : 0.8,
"engineRpm" : 2000,
"visible" : true
},
"light" : {
"taxi" : true,
"landing" : false,
"beacon" : true,
"strobe" : false,
"nav" : true
}
}

Alternatively, several records can be sent in a JSON array:

[
{ "id" : 4711, ... },
{ "id" : 0815, ... },
{ "id" : 1234, ...}
]

Only changed attributes need to be sent, so the full info is only needed in the first record.

Author
Birger Hoppe