airports_around: Lookup airports near specified coordinates

Description Usage Arguments Value Examples

View source: R/distances.R

Description

A function that returns details of all airports within a user-specified distance of an input coordinate location. Takes as input a longitude and latitude argument.

Usage

1
airports_around(lat, lon, distance = 100)

Arguments

lat

Latitude in decimal degrees

lon

Longitude in decimal degrees

distance

Distance boundary for nearest airport lookup in kilometres

Value

A tibble of airports that fall within the specified range of specified location

Examples

1
2
3
4
airports_around(-123,49.2)

# Or with a user specified distance in kilometres
airports_around(-123, 49.2, distance = 200)

dshkol/airportr documentation built on July 7, 2020, 10:59 a.m.