NAME

WebService::OpenSky::Core::Flight - Flight class

VERSION

version 0.008

SYNOPSIS

use WebService::OpenSky;
my $opensky = WebService::OpenSky->new;
my $flights  = $opensky->get_arrivals_by_airport('KLAX', $start, $end);
while ( my $flight = $flights->next ) {
    say $flight->callsign;
}

DESCRIPTION

This class is not to be instantiated directly. It is a read-only class representing OpenSky flight responses.

All attributes are read-only.

METHODS

icao24

Unique ICAO 24-bit address of the transponder in hex string representation. All letters are lower case.

firstSeen

Estimated time of departure for the flight as Unix time (seconds since epoch).

estDepartureAirport

ICAO code of the estimated departure airport. Can be null if the airport could not be identified.

lastSeen

Estimated time of arrival for the flight as Unix time (seconds since epoch)

estArrivalAirport

ICAO code of the estimated arrival airport. Can be null if the airport could not be identified.

callsign

Callsign of the vehicle (8 chars). Can be null if no callsign has been received. If the vehicle transmits multiple callsigns during the flight, we take the one seen most frequently.

estDepartureAirportHorizDistance

Horizontal distance of the last received airborne position to the estimated

estDepartureAirportVertDistance

Vertical distance of the last received airborne position to the estimated departure airport in meters

estArrivalAirportHorizDistance

Horizontal distance of the last received airborne position to the estimated arrival airport in meters

estArrivalAirportVertDistance

Vertical distance of the last received airborne position to the estimated arrival airport in meters

departureAirportCandidatesCount

Number of other possible departure airports. These are airports in short distance to estDepartureAirport.

arrivalAirportCandidatesCount

Number of other possible departure airports. These are airports in short distance to estArrivalAirport.

AUTHOR

Curtis "Ovid" Poe <curtis.poe@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Curtis "Ovid" Poe.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)