Description Usage Arguments Value Note Examples
View source: R/get_conditions.R
experimental
get_conditions
gets forecast conditions for a given ZIP code or latitude/longitude pair
1 2 3 4 5 6 7 8 | get_conditions(
zip = NULL,
latitude = NULL,
longitude = NULL,
date = NULL,
distance = 25,
api_key = Sys.getenv("AIRNOW_API_KEY")
)
|
zip |
US ZIP code |
latitude |
TODO |
longitude |
TODO |
date |
Date at which to observe historical conditions. If not provided, current conditions will be returned. |
distance |
If no data are associated with the given ZIP code, find observations from nearby reporting areas within this distance (in miles) (default: |
api_key |
AirNow API key. By default, the |
Tibble containing current conditions for the given location
API keys can be created by signing up for an account at https://docs.airnowapi.org
1 2 3 4 | ## Not run:
get_conditions(zip = 90210)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.