set_location: Specifies location of request

Description Usage Arguments Value Examples

Description

This is a wrapper function that will validate and format location strings for requesting data from weather underground.

Usage

1
2
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

1
2
3
4
5
6
7
8
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()

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