7 - Model Definition
This page describes the data models returned and accepted by the SafeSky Public REST API.
1. Beacon Model
The Beacon model defines the structure of an aircraft position as provided by or submitted to the SafeSky network, based on the ADS-BI protocol.
Fields
| Field |
|---|
id
string
Yes
stringlatitude
double
Yes
doublelongitude
double
Yes
doublealtitude
int
Yes
intcourse
int
Yes
intground_speed
int
Yes
intlast_update
long
No
longstatus
string
No
stringbeacon_type
string
No
stringtransponder_type
string
No
stringcall_sign
string
No
stringvertical_rate
int
No
intaccuracy
int
No
intaltitude_accuracy
int
No
intturn_rate
float
No
floatremarks
string
No
stringoperation_area
string
No
stringStatus Values
The status field reflects the current operational state of a beacon:
| Value | Description |
|---|---|
AIRBORNE |
The beacon is in flight. |
GROUNDED |
The beacon is on the ground (taxiing, parked, or pre-flight). |
INACTIVE |
The beacon has not transmitted recently and is considered inactive. |
SAR |
Search and rescue operation. |
Example Beacon Object
{
"id": "3423C3",
"latitude": 48.86584,
"longitude": 2.63723,
"beacon_type": "JET",
"call_sign": "IBE06CK",
"transponder_type": "ADS-B",
"last_update": 1733412793,
"altitude": 10554,
"course": 205,
"ground_speed": 237,
"vertical_rate": 2,
"accuracy": 0,
"altitude_accuracy": 0,
"turn_rate": 0.0,
"status": "AIRBORNE"
}
2. Status Model
The Status model is returned by the GET /v1/stats/overview endpoint. It provides a snapshot of the current state of the SafeSky network.
Fields
| Field | Required | Description |
|---|---|---|
timestamp |
— | long — Unix timestamp (seconds since epoch, UTC) for this status snapshot. |
active |
— | long — Total number of currently active beacons. |
inactive |
— | long — Total number of inactive beacons. |
grounded |
— | long — Total number of grounded beacons. |
beacon_counts |
— | int — Total number of beacons tracked by the network. |
outdated_beacon_counts |
— | int — Total number of beacons with stale position data. |
transponder_types |
— | array — Array of objects, each mapping a transponder type name to its count (e.g., {"ADS-B": 6200}). |
beacon_types |
— | array — Array of objects, each mapping an aircraft category to its count (e.g., {"JET": 3200}). |
Example Status Object
{
"timestamp": 1733412793,
"active": 12540,
"inactive": 430,
"grounded": 87,
"beacon_counts": 13057,
"outdated_beacon_counts": 212,
"transponder_types": [
{ "ADS-B": 6200 },
{ "ADS-BI": 4100 },
{ "FLARM": 1800 },
{ "OGN": 740 },
{ "MODE-S": 217 }
],
"beacon_types": [
{ "JET": 3200 },
{ "MOTORPLANE": 2100 },
{ "HELICOPTER": 980 },
{ "GLIDER": 870 },
{ "UAV": 430 },
{ "PARA_GLIDER": 215 },
{ "BALLOON": 47 }
]
}
Altitude Reference
All altitude values in the SafeSky Public REST API are expressed in meters AMSL (Above Mean Sea Level), derived from GPS altitude.
Coordinate System
All geographic coordinates use the WGS84 datum:
latitude: decimal degrees, positive = North, negative = Southlongitude: decimal degrees, positive = East, negative = West- 4 decimal places of precision are sufficient for all API calls (~11 meters resolution)