Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AirQualityIndex

import type { AirQualityIndex } from "https://googleapis.deno.dev/v1/airquality:v1.ts";

The basic object for representing different air quality metrics. When brought together, these metrics provide a snapshot about the current air quality conditions. There are multiple indexes in the world serving different purposes and groups interested in measuring different aspects of air quality.

interface AirQualityIndex {
aqi?: number;
aqiDisplay?: string;
category?: string;
code?: string;
color?: Color;
displayName?: string;
dominantPollutant?: string;
}

§Properties

§
aqi?: number
[src]

The index's numeric score. Examples: 10, 100. The value is not normalized and should only be interpreted in the context of its related air-quality index. For non-numeric indexes, this field will not be returned. Note: This field should be used for calculations, graph display, etc. For displaying the index score, you should use the AQI display field.

§
aqiDisplay?: string
[src]

Textual representation of the index numeric score, that may include prefix or suffix symbols, which usually represents the worst index score. Example:

100 or 10+. Note: This field should be used when you want to display the index score. For non-numeric indexes, this field is empty.

§
category?: string
[src]

Textual classification of the index numeric score interpretation. For example: "Excellent air quality".

§
code?: string
[src]

The index's code. This field represents the index for programming purposes by using snake case instead of spaces. Examples: "uaqi", "fra_atmo".

§
color?: Color
[src]

The color used to represent the AQI numeric score.

§
displayName?: string
[src]

A human readable representation of the index name. Example: "AQI (US)"

§
dominantPollutant?: string
[src]

The chemical symbol of the dominant pollutant. For example: "CO".