Find the AirNow reporting area for a location
Source:R/get_airnow_reporting_area.R
get_airnow_reporting_area.Rdget_airnow_reporting_area() looks up which AirNow reporting area serves
a ZIP code or a latitude/longitude pair. The returned
reporting_area_code is the area argument for
get_airnow_observations(), get_airnow_forecasts(), and
get_airnow_forecast_history(). Resolution uses AirNow's
current-forecast service. When the area has no forecast issued today, a
ZIP code is looked up in AirNow's bundled ZIP-to-area crosswalk instead;
coordinates cannot be resolved that way, so choose a code from
airnow_areas.
Usage
get_airnow_reporting_area(
zip = NULL,
latitude = NULL,
longitude = NULL,
api_key = get_airnow_key()
)Value
A one-row tibble with columns reporting_area_code,
reporting_area, state_code, latitude, and longitude.