View source: R/get_airnow_forecast.R
get_airnow_forecast | R Documentation |
get_airnow_forecast()
retrieves forecasted air quality conditions
for the given location. Locations can be specified either by ZIP code
(zip
), or by latitude
/longitude
. If no data exist for the specified
location, an optional search radius for other sites can be specified using
distance
.
get_airnow_forecast( zip = NULL, latitude = NULL, longitude = NULL, distance = NULL, date = NULL, clean_names = TRUE, api_key = get_airnow_token() )
zip |
ZIP code, a 5-digit numeric string (e.g., |
latitude |
Latitude in decimal degrees |
longitude |
Longitude in decimal degrees |
distance |
Optional. If no reporting area is associated with the given
|
date |
Optional date of forecast. If this is not specified, the current forecast is returned. |
clean_names |
Whether or not column names should be cleaned (default:
|
api_key |
AirNow API key |
A data frame with current air quality conditions
## Not run: get_airnow_forecast(zip = "90210") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.