airports_near_airport {airportr} | R Documentation |
A function that returns details of airports within a user-specified distance of a given airport.
airports_near_airport(input, distance = 100)
input |
An airport name, IATA code, or ICAO code. Input type will be guessed unless explicitly defined |
distance |
Distance boundary for nearest airport lookup in kilometres |
A tibble of airports that fall within the specified range of input airport
airports_near_airport("YVR")
# Or with a user specified distance in kilometres
airports_near_airport("YVR", distance = 200)