Table of Contents

Class HeatmapTileRequest

Namespace
GoogleMapsApi.Entities.AirQuality.Request
Assembly
GoogleMapsApi.dll

Request for the Air Quality API heatmap-tile endpoint (GET https://airquality.googleapis.com/v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}). Downloads a single 256×256 PNG map tile for the chosen air-quality index. The response is binary, not JSON.

public sealed class HeatmapTileRequest : MapsBaseRequest
Inheritance
HeatmapTileRequest
Inherited Members

Remarks

Tile coordinates follow the standard Web Mercator scheme: X and Y are in the range [0, 2^zoom). The Air Quality API is billable; calls beyond the free tier incur charges.

Properties

MapType

Which air-quality index and colour scheme the tile renders. Required.

public AirQualityMapType MapType { get; set; }

Property Value

AirQualityMapType

X

The tile's east-west index, in the range [0, 2^zoom).

public int X { get; set; }

Property Value

int

Y

The tile's north-south index, in the range [0, 2^zoom).

public int Y { get; set; }

Property Value

int

Zoom

Zoom level, in the range [0, 16]; 0 is the whole world in one tile.

public int Zoom { get; set; }

Property Value

int

Methods

GetUri()

Builds the absolute request URI, including scheme, base URL, and serialized query-string parameters.

public override Uri GetUri()

Returns

Uri

The fully composed URI to send to the Google Maps API.