API reference

The traffic library is based on three main core classes for handling:

Flight and Traffic are wrappers around pandas.DataFrame with relevant efficiently implemented methods for trajectory analysis. Airspaces take advantage of shapely Geometries for geometrical analysis.

FlightIterator have been introduced in order to deal with iteration over pieces of trajectories. This structure allows for more flexibility and accuracy when trying to identify specific events which may happen several times along a trajectory.

Lazy iteration has been implemented on top of Traffic structures in order to chain operations to be applied on every Flight in the collection and stack them before triggering only one iteration.