set_location {rwunderground} | R Documentation |
Specifies location of request
Description
This is a wrapper function that will validate and format location strings for requesting data from weather underground.
Usage
set_location(zip_code = NULL, territory = NULL, city = NULL,
airport_code = NULL, PWS_id = NULL, lat_long = NULL, autoip = NULL)
Arguments
zip_code |
zip code |
territory |
state if in US, otherwise country |
city |
city name |
airport_code |
IATA/ICAO airport code |
PWS_id |
personal weather station ID |
lat_long |
latitude and longitude, as a comma-separated string |
autoip |
location based on IP |
Value
formatted and validated location string
Examples
set_location(zip_code = "90210")
set_location(territory = "Hawaii", city = "Honolulu")
set_location(territory = "Kenya", city = "Mombasa")
set_location(airport_code = "SEA")
set_location(PWS_id = "KMNCHASK10")
set_location(lat_long="40.6892,-74.0445")
set_location(autoip = "172.227.205.140")
set_location()
[Package rwunderground version 0.1.8 Index]