View source: R/getFlightDistance.R
getFlightDistance | R Documentation |
getFlightDistance extracts aircraft flight distance from an online source, typically a API...
getFlightDistance(ref1, ref2, units = "km", verbose = TRUE)
ref1, ref2 |
IATA code for department and arrival airports, respectively (character). |
units |
units to report distance in, see below. |
verbose |
if TRUE, function returns a report table else just answer in requested units |
If ref1 and ref2 are matched to known airports, the function outputs reported distance
This version of the function extracts results from the webflyer.com mileage calculator: http://www.webflyer.com/travel/mileage_calculator
#flight distance Los Angeles to London Heathrow getFlightDistance("LAX", "LHR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.