Skip to contents

For a given latitude and longitude, find the nearest town that the BOM provides a forecast for.

Usage

find_forecast_towns(longitude = 149.2, latitude = -35.3, distance_km = 100)

Arguments

longitude

A numeric value of longitude in decimal degree (DD) format. By default, Canberra (approximately).

latitude

A numeric value of latitude in decimal degree (DD) format. By default, Canberra (approximately).

distance_km

A numeric value of the distance in kilometres from the latitude and longitude point beyond which values will not be returned.

Value

A data.table::data.table() of all forecast towns (in this package) sorted by distance from latitude and longitude, ascending.

Author

Hugh Parsonage, hugh.parsonage@gmail.com, and James Goldie, me@jamesgoldie.dev, and Adam H. Sparks, adamhsparks@gmail.com

Examples

if (FALSE) { # interactive()

# find forecast towns near Esperance, WA
find_forecast_towns(longitude = 121.8913, latitude = -33.8614)
}