pub struct Flight {
pub icao24: String,
pub first_seen: u64,
pub est_departure_airport: Option<String>,
pub last_seen: u64,
pub est_arrival_airport: Option<String>,
pub callsign: Option<String>,
pub est_departure_airport_horiz_distance: Option<u32>,
pub est_departure_airport_vert_distance: Option<u32>,
pub est_arrival_airport_horiz_distance: Option<u32>,
pub est_arrival_airport_vert_distance: Option<u32>,
pub departure_airport_candidates_count: u16,
pub arrival_airport_candidates_count: u16,
}Expand description
Represents a flight object returned by the OpenSky API
Fields§
§icao24: StringUnique ICAO 24-bit address of the transponder in hex string representation. All letters are lower case.
first_seen: u64Estimated time of departure for the flight as Unix time (seconds since epoch).
est_departure_airport: Option<String>ICAO code of the estimated departure airport. Can be None if the airport could not be identified.
last_seen: u64Estimated time of arrival for the flight as Unix time (seconds since epoch).
est_arrival_airport: Option<String>ICAO code of the estimated arrival airport. Can be None if the airport could not be identified.
callsign: Option<String>Callsign of the vehicle (8 chars). Can be None if no callsign has been received. If the vehicle transmits multiple callsigns during the flight, we take the one seen most frequently.
est_departure_airport_horiz_distance: Option<u32>Horizontal distance of the last received airborne position to the estimated departure airport in meters.
est_departure_airport_vert_distance: Option<u32>Vertical distance of the last received airborne position to the estimated departure airport in meters.
est_arrival_airport_horiz_distance: Option<u32>Horizontal distance of the last received airborne position to the estimated arrival airport in meters.
est_arrival_airport_vert_distance: Option<u32>Vertical distance of the last received airborne position to the estimated arrival airport in meters.
departure_airport_candidates_count: u16Number of other possible departure airports. These are airports in short distance to estDepartureAirport.
arrival_airport_candidates_count: u16Number of other possible departure airports.