Output
Messages output by the endpoint are encoded in JSON format. The messages output when calling the endpoint will have the form of an Event Object as detailed below.
#
Event ObjectThe Event Object will contain all available fields which describe a flight observed by ADS-B and each is identified by a unique flight_id
. It is delivered in the following format:
{"event": {...}}
. All fields included in the Event object are described below.
#
Content#
Event object informationThe fields in this table are taken directly from ADS-B messages:
Field | Type | Description | Example |
---|---|---|---|
icao_address | string | Hexadecimal representation of ICAO 24-bit address | "406AE2" |
callsign | string | Call sign | "BAW41HA" |
latitude | float | Latitude in degrees, between -90 and 90 (both inclusive) | 52.331326 |
longitude | float | Longitude in degrees, between -180 (exclusive) and 180 (inclusive) | 4.716759 |
speed | float | Aircraft speed in knots | 477 |
heading | float | Aircraft heading in degrees (0 is North) | 310 |
#
Spire Event object metadataThese fields are merged into each record to provide additional information regarding the ADS-B message:
Field | Type | Description | Example |
---|---|---|---|
flight_id | ID | Spire internal unique flight ID in UUID format. | "149f14c0-ec7e-4150-8b6f-cbecebaac8b5" |
timestamp | datetime | Timestamp for which all data fields are valid | "2023-02-25T20:56:54.000Z" |
creation_time | datetime | Timestamp at which the flight event was created | "2023-02-25T20:57:02.000Z" |
extrapolated | boolean | Confirmation of whether event is extrapolated | "true", "false" |
#
Aircraft InformationThe following fields are enhanced data and may be present in the record depending on availability:
Field | Type | Description | Example |
---|---|---|---|
tail_number | string | Aircraft Registration | "G-EUYV" |
#
Flight InformationThe following fields are enhanced data and will be present in the record depending on availability:
Field | Type | Description | Example |
---|---|---|---|
flight_number | string | Flight number (IATA format) | "BA441" |
#
Flight AnalyticsThe following fields are enhanced data and may be present in the record depending on availability:
Field | Type | Description | Example |
---|---|---|---|
event_type | string | Event type assigned at creation_time | "NEW_FLIGHT", "TAKEOFF", "LANDING", "OFF_BLOCK", "ON_BLOCK" |
state | string | Flight state | "ON_GROUND", "AIRBORNE", "LANDED", "POST-FLIGHT" |
#
SampleHere is an example of a typical Event Object broadcast by our API: