Description Usage Arguments Details Value See Also Examples
finds the nearest airport to a set of coordinates
1 | airportMatcher(returnDF, dataSet = "openFlights")
|
returnDF |
output of coordinateGetter |
dataSet |
airport database do you want to use: "openFlights" or "the other one", default = "openFlights |
It's a bit tough to know what airports to use, it seems all corpuses are either too detailed or not enough. For now I'm using openflights, might parametrize this later to allow for other airport lists to be selected
a dataframe containing the address, the coordinates of the address, the IATA code of the nearest airport, the distance (in km) to the nearest airport, and the coordinates of the nearest airport
1 2 3 4 5 6 7 8 9 | ## Not run:
if(interactive()){
#' library(purrr)
addresses <- c("9th Street, Troy, NY, USA", "The Mall, Solan, Himachal Pradesh, India")
returnDF <- purrr::map_dfr(addresses, ~coordinateGetter(.))
airportMatcher(returnDF)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.