geolookup: Lists nearby weather stations for a given location

Description Usage Arguments Value Examples

Description

Lists nearby weather stations for a given location

Usage

1
2
geolookup(location, use_metric = FALSE, key = get_api_key(), raw = FALSE,
  message = TRUE)

Arguments

location

location set by set_location

use_metric

Metric or imperial units

key

weather underground API key

raw

if TRUE return raw httr object

message

if TRUE print out requested URL

Value

tbl_df of nearby weather stations with: type, city, state, country, id, lat, lon and dist (in either mi or km)

Examples

1
2
3
4
5
6
7
## Not run: 
geolookup(set_location(territory = "Hawaii", city = "Honolulu"))
geolookup(set_location(airport_code = "SEA"))
geolookup(set_location(zip_code = "90210"))
geolookup(set_location(territory = "IR", city = "Tehran"))

## End(Not run)

rwunderground documentation built on May 2, 2019, 2:46 a.m.