AirQuality

The AirQuality Service provides access to real-time air quality data using the AirNowAPI. For more information, check out https://docs.airnowapi.org/.

RPCS

AirQuality.qualityIndex(latitude: Latitude, longitude: Longitude)

Get air quality index of closest reporting location for coordinates

Arguments:

  • latitude: Latitude info - latitude of location
  • longitude: Longitude info - Longitude of location

Returns: Number info - AQI of closest station

AirQuality.qualityIndexByZipCode(zipCode: BoundedInteger<0, 99999>)

Get air quality index of closest reporting location for ZIP code

Arguments:

  • zipCode: BoundedInteger<0, 99999> info - ZIP code of location

Returns: Number info - AQI of closest station