Description Usage Arguments Value Examples
This is a wrapper function that will validate and format location strings for requesting data from weather underground.
1 2 |
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 |
formatted and validated location string
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.