FlightData

FlightData[spec,options]

returns a subset of properties for a flight or selection of flights with specifications spec.

FlightData[spec,prop,options]

returns the value of the property prop for specifications spec.

FlightData[spec,prop,datespec,options]

returns the value of the property prop for a specific time or time range datespec.

Details and Options

  • FlightData currently provides information on flights within the United States whose flight plans have been filed with the FAA. This includes a limited range of historical flights.
  • FlightData provides information on flights from one airport to another airport, even if the aircraft continues on to other airports under a different flight number.
  • spec can be a "Flight" entity or list of "Flight" entities, an "Airport" entity, an association with the "FlightNumber" and "Airline" keys or a route specified as a rule.
  • "Flight" entities can be found using one of the other spec queries.
  • FlightData returns information on all flights in and out of an airport when spec is an "Airport" entity.
  • For a route, the first argument of the rule is the departure airport and the second argument is the arrival airport. FlightData will return the results for all flights along that route. All can be substituted for one of the rule arguments to find all flights into or out of the specified airport.
  • Arrival and departure properties include:
  • "ArrivalAirport"destination airport for flight
    "ArrivalDelay"delay from original arrival time
    "ArrivalTime"actual arrival time
    "DepartureAirport"origin airport for flight
    "DepartureDelay"delay from original departure time
    "DepartureTime"actual departure time
    "OriginalArrivalTime"original time of arrival
    "OriginalDepartureTime"original time of departure
  • Flight status properties include:
  • "FlightDuration"duration of flight
    "FlightStatus"status of flight
    "LandedQ"whether or not the plane has landed
    "TimeSinceTakeOff"time in flight since takeoff
    "TimeToLanding"time until landing
  • Time-independent flight properties include:
  • "AircraftType"aircraft used by flight
    "Airline"airline for flight
    "FlightNumber"flight number
    "Flights""Flight" entities for spec
    "FutureFlights"flights in next 10 days for this plane or flight number
    "PreviousFlights"flights in previous 10 days for this plane or flight number
  • Time seriesbased properties include:
  • "Altitude"altitude of plane relative to mean sea level
    "DirectionHeading"direction of plane relative to true north
    "FlightMap"GeoGraphics map of flight
    "FlightPath"flight path
    "Position"geoposition of plane
    "RateOfClimb"rate of climb
    "Speed"speed of plane
  • Aggregate time-dependent properties include:
  • "DistanceTraveled"distance traveled
    "MaxAltitude"maximum altitude
    "MaxSpeed"maximum speed
    "MeanCruisingSpeed"mean speed, excluding takeoff or landing
    "MeanSpeed"average speed
  • By default, FlightData of a "Flight" entity returns an association of the "Airline", "ArrivalAirport", "ArrivalDelay", "ArrivalTime", "DepartureAirport", "DepartureDelay", "DepartureTime", "DistanceTraveled", "FlightDuration", "FlightNumber", "FlightPath", "FlightStatus", "OriginalArrivalTime" and "OriginalDepartureTime" properties.
  • FlightData of a route, airport or an association of an airline and flight number will return the "Flights" property by default.
  • prop can also be specified as "PropertyAssociation" or "Dataset", which return an Association of all properties and a Dataset of those properties, respectively. Lists of properties are also supported.
  • "ArrivalTime", "DepartureTime", "OriginalArrivalTime" and "OriginalDepartureTime" are returned in local time.
  • Time series results are returned in the time zone of the departure airport.
  • When possible, time series results include the arrival and departure times and values as interpreted from other properties.
  • datespec can be a single date, specified as a date list or DateObject, or a list of two such dates, defining a period of time. For single times, results are calculated for that specific time. For date ranges, results include TimeSeries where relevant (such as "Altitude" or "Speed") or are calculated over that range (such "MaxSpeed" or "FlightMap").
  • When no datespec is specified for a flight, FlightData returns results for the current local time as defined by Now. When dealing with routes and airports, results reflect flights within the current day. When possible, that day is defined in the time zone of the departure airport from midnight to the following midnight.
  • FlightData[spec,prop,airline,datespec] can be used to filter results for a route by the specified airline. The airline argument is ignored in the case of single flights.
  • The option UnitSystem is available for controlling the units of the results. The following settings can be used:
  • "Imperial"return results in imperial units
    "Metric"return results in metric units

Examples

open allclose all

Basic Examples  (4)

Map the flight path for a specific flight:

Find recent "Flight" entities for a particular airline and flight number:

Obtain the "Flight" entities between two airports for yesterday:

Obtain the duration of a flight from New York City to Sacramento:

Get all flights out of an airport for a specific date:

Scope  (10)

Examine all available properties:

Obtain all available properties for a specific flight:

Find a specific property for a flight:

Examine the speed of a flight over time:

Find the altitude at a specific time:

Obtain the heading for a period of time:

Examine currently scheduled departure times for Sacramento International Airport:

Find the departure airports for flights arriving at Logan airport:

Explore flight times for flights from JFK to PDX yesterday:

Obtain airline data on all flights into and out of Portland international Airport:

Find all Southwest destinations from Hartsfield-Jackson Atlanta International Airport:

Options  (1)

UnitSystem  (1)

Control whether results are returned in metric or imperial units:

Applications  (6)

Map flights leaving JFK airport in the morning after 5 am:

Examine the altitude of flights leaving Denver:

Remove flights missing takeoff information and shift the time series to a common start point:

Explore common flight paths for flights departing Albuquerque:

Examine flight departure times for O'Hare airport over a day in 10-minute windows:

Discover the relative flow of flights from JFK airport to airports across the United States:

Examine the region visible for a flight from Los Angeles to New York City:

Properties & Relations  (1)

FlightsOverhead finds flights currently overhead and provides visualizations:

Possible Issues  (2)

Flight information is not sampled consistently and in some cases may be missing for long stretches of a flight:

Where possible, this data is augmented with the locations and times for arrival and departure:

Queries for the current day may include missing flight path data:

Neat Examples  (3)

Examine the density of flights over a region:

Explore how flight speed and altitude correlate:

Extract the altitude values for flights going from east to west:

Compare this to the values for flights going from west to east:

Compare the two to discover the flight levels within the airway connecting the two airports:

Wolfram Research (2021), FlightData, Wolfram Language function, https://reference.wolfram.com/language/ref/FlightData.html.

Text

Wolfram Research (2021), FlightData, Wolfram Language function, https://reference.wolfram.com/language/ref/FlightData.html.

CMS

Wolfram Language. 2021. "FlightData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FlightData.html.

APA

Wolfram Language. (2021). FlightData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FlightData.html

BibTeX

@misc{reference.wolfram_2024_flightdata, author="Wolfram Research", title="{FlightData}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FlightData.html}", note=[Accessed: 03-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_flightdata, organization={Wolfram Research}, title={FlightData}, year={2021}, url={https://reference.wolfram.com/language/ref/FlightData.html}, note=[Accessed: 03-December-2024 ]}