findNearestAirports
returns a SpatialPointsDataFrame
of the 'n' number of airports closest to a declared point.
findNearestAirports(point = NULL, n = 5, ids = FALSE, bb = FALSE)
point | a point described by lat/long, can be piped from geocode |
---|---|
n | the number of Airports to find (default = 5) |
ids | If TRUE, a vector of airport ICAO IDs is added to retuned list (default = |
bb | If TRUE, the geometry of the minimum bounding area of the features is added to returned list (default = |
a list() of minimum length 2: AOI and ap
findAirports
# NOT RUN { pt = geocode("UCSB") %>% findNearestAirports(n = 5) # }