pub struct StateVector {Show 18 fields
pub icao24: String,
pub callsign: Option<String>,
pub origin_country: String,
pub time_position: Option<u64>,
pub last_contact: u64,
pub longitude: Option<f32>,
pub latitude: Option<f32>,
pub baro_altitude: Option<f32>,
pub on_ground: bool,
pub velocity: Option<f32>,
pub true_track: Option<f32>,
pub vertical_rate: Option<f32>,
pub sensors: Option<Vec<u64>>,
pub geo_altitude: Option<f32>,
pub squawk: Option<String>,
pub spi: bool,
pub position_source: PositionSource,
pub category: Option<AirCraftCategory>,
}Expand description
Represents a state vector of an aircraft.
Fields§
§icao24: StringUnique ICAO 24-bit address of the transponder in hex string representation.
callsign: Option<String>Callsign of the vehicle (8 chars). Can be None if no callsign has been received.
origin_country: StringCountry name inferred from the ICAO 24-bit address.
time_position: Option<u64>Unix timestamp (seconds) for the last position update. Can be None if no position report was received by OpenSky within the past 15s.
last_contact: u64Unix timestamp (seconds) for the last update in general. This field is updated for any new, valid message received from the transponder.
longitude: Option<f32>WGS-84 longitude in decimal degrees.
latitude: Option<f32>WGS-84 latitude in decimal degrees.
baro_altitude: Option<f32>Barometric altitude in meters.
on_ground: boolBoolean value which indicates if the position was retrieved from a surface position report.
velocity: Option<f32>Velocity over ground in m/s.
true_track: Option<f32>True track in decimal degrees clockwise from north (north=0°). Can be None.
vertical_rate: Option<f32>Vertical rate in m/s. A positive value indicates that the airplane is climbing, a negative value indicates that it descends.
sensors: Option<Vec<u64>>IDs of the receivers which contributed to this state vector. Is None if no filtering for sensor was used in the request.
geo_altitude: Option<f32>Geometric altitude in meters.
squawk: Option<String>The transponder code aka Squawk.
spi: boolWhether flight status indicates special purpose indicator.
position_source: PositionSourceOrigin of this state’s position.
category: Option<AirCraftCategory>Aircraft category.