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

Pollen

import { Pollen } from "https://googleapis.deno.dev/v1/pollen:v1.ts";

The Pollen API.

class Pollen {
constructor(client?: CredentialsClient, baseUrl?: string);
async forecastLookup(opts?: ForecastLookupOptions): Promise<LookupForecastResponse>;
async mapTypesHeatmapTilesLookupHeatmapTile(
mapType:
| "MAP_TYPE_UNSPECIFIED"
| "TREE_UPI"
| "GRASS_UPI"
| "WEED_UPI"
,
x: number,
y: number,
zoom: number,
): Promise<HttpBody>;
}

§Constructors

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

§Methods

§
forecastLookup(opts?: ForecastLookupOptions): Promise<LookupForecastResponse>
[src]

Returns up to 5 days of daily pollen information in more than 65 countries, up to 1km resolution.

§
mapTypesHeatmapTilesLookupHeatmapTile(mapType: "MAP_TYPE_UNSPECIFIED" | "TREE_UPI" | "GRASS_UPI" | "WEED_UPI", x: number, y: number, zoom: number): Promise<HttpBody>
[src]

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

@param mapType

Required. The type of the pollen heatmap. Defines the combination of pollen type and index that the map will graphically represent.

@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