Airports and runways

Airports offer special display outputs in Jupyter Notebook based on their geographic footprint.

from traffic.data import airports
airports['EHAM']
Amsterdam Schiphol Airport (Netherlands) EHAM/AMS

It is also possible to benefit from the Altair geographical representation.

from traffic.data import airports
# see https://traffic-viz.github.io/samples.html if any issue on import
from traffic.data.samples import belevingsvlucht

(
    airports["EHAM"].geoencode(runways=True, labels=True)
    + belevingsvlucht.first(minutes=1).geoencode().mark_line(color="steelblue")
    + belevingsvlucht.last(minutes=6).geoencode().mark_line(color="orangered")
).configure_text(font="Ubuntu", fontWeight="bold")
Amsterdam Schiphol airport