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

AirQuality

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

The Air Quality API.

class AirQuality {
constructor(client?: CredentialsClient, baseUrl?: string);
async currentConditionsLookup(req: LookupCurrentConditionsRequest): Promise<LookupCurrentConditionsResponse>;
async forecastLookup(req: LookupForecastRequest): Promise<LookupForecastResponse>;
async historyLookup(req: LookupHistoryRequest): Promise<LookupHistoryResponse>;
async mapTypesHeatmapTilesLookupHeatmapTile(
mapType:
| "MAP_TYPE_UNSPECIFIED"
| "UAQI_RED_GREEN"
| "UAQI_INDIGO_PERSIAN"
| "PM25_INDIGO_PERSIAN"
| "GBR_DEFRA"
| "DEU_UBA"
| "CAN_EC"
| "FRA_ATMO"
| "US_AQI"
,
x: number,
y: number,
zoom: number,
): Promise<HttpBody>;
}

§Constructors

§
new AirQuality(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§

The Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500 meters resolution. Includes over 70 local indexes and global air quality index and categories.

§
forecastLookup(req: LookupForecastRequest): Promise<LookupForecastResponse>
[src]

Returns air quality forecast for a specific location for a given time range.

§
historyLookup(req: LookupHistoryRequest): Promise<LookupHistoryResponse>
[src]

Returns air quality history for a specific location for a given time range.

§
mapTypesHeatmapTilesLookupHeatmapTile(mapType: "MAP_TYPE_UNSPECIFIED" | "UAQI_RED_GREEN" | "UAQI_INDIGO_PERSIAN" | "PM25_INDIGO_PERSIAN" | "GBR_DEFRA" | "DEU_UBA" | "CAN_EC" | "FRA_ATMO" | "US_AQI", x: number, y: number, zoom: number): Promise<HttpBody>
[src]

Returns a bytes array containing the data of the tile PNG image.

@param mapType

Required. The type of the air quality heatmap. Defines the pollutant that the map will graphically represent. Allowed values: - UAQI_RED_GREEN (UAQI, red-green palette) - UAQI_INDIGO_PERSIAN (UAQI, indigo-persian palette) - PM25_INDIGO_PERSIAN - GBR_DEFRA - DEU_UBA - CAN_EC - FRA_ATMO - US_AQI

@param x

Required. Defines the east-west point in the requested tile.

@param y

Required. Defines the north-south point in the requested tile.

@param zoom

Required. The map's zoom level. Defines how large or small the contents of a map appear in a map view. Zoom level 0 is the entire world in a single tile. Zoom level 1 is the entire world in 4 tiles. Zoom level 2 is the entire world in 16 tiles. Zoom level 16 is the entire world in 65,536 tiles. Allowed values: 0-16