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 (Latitude) - latitude of location
  • longitude: Longitude (Longitude) - Longitude of location

Returns: Number (Number) - 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> (BoundedInteger) - ZIP code of location

Returns: Number (Number) - AQI of closest station