Method: mapTypes.heatmapTiles.lookupHeatmapTile
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回一个字节数组,其中包含功能块 PNG 图片的数据。
HTTP 请求
GET https://airquality.googleapis.com/v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}
网址采用 gRPC 转码语法。
路径参数
参数 |
mapType |
enum (MapType )
必需。空气质量热图的类型。定义地图将以图形方式表示的污染物。
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
|
zoom |
integer
必需。地图的缩放级别。定义地图内容在地图视图中的显示大小。 缩放级别 0 是单个图块中显示的整个世界。缩放级别 1 是指整个世界,占据 4 个图块。缩放级别 2 是指整个世界,包含 16 个图块。缩放级别 16 是指整个世界,包含 65,536 个图块。 允许的值:0-16
|
x |
integer
必需。定义所请求的图块中的东西点。
|
y |
integer
必需。定义所请求的图块中的南北点。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/cloud-platform
如需了解详情,请参阅 OAuth 2.0 概览。
MapType
空气质量热图的类型。定义地图将以图形方式表示的污染物。
枚举 |
MAP_TYPE_UNSPECIFIED |
默认值。如果以参数的形式传递,服务器会忽略它。 |
UAQI_RED_GREEN |
通用空气质量指数红绿色调。 |
UAQI_INDIGO_PERSIAN |
通用空气质量指数靛蓝-波斯坦配色方案。 |
PM25_INDIGO_PERSIAN |
PM2.5 指数靛蓝色调色板。 |
GBR_DEFRA |
每日空气质量指数 (UK) 调色板。 |
DEU_UBA |
德国当地空气质量指数的颜色调色板。 |
CAN_EC |
加拿大空气质量健康指数调色板。 |
FRA_ATMO |
法国空气质量指数颜色调色板。 |
US_AQI |
美国空气质量指数的颜色调色板。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eRetrieves a PNG image of a heatmap tile representing air quality data.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying \u003ccode\u003emapType\u003c/code\u003e, \u003ccode\u003ezoom\u003c/code\u003e, \u003ccode\u003ex\u003c/code\u003e, and \u003ccode\u003ey\u003c/code\u003e parameters in the URL.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eOffers various map types including UAQI and regional air quality indices.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should be empty and response is a PNG image.\u003c/p\u003e\n"]]],[],null,["# Method: mapTypes.heatmapTiles.lookupHeatmapTile\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.HttpBody.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [MapType](#MapType)\n\nReturns a bytes array containing the data of the tile PNG image.\n\n### HTTP request\n\n`GET https://airquality.googleapis.com/v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mapType` | `enum (`[MapType](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile#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 |\n| `zoom` | `integer` 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 |\n| `x` | `integer` Required. Defines the east-west point in the requested tile. |\n| `y` | `integer` Required. Defines the north-south point in the requested tile. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA heatmap tile image, in PNG format.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nMapType\n-------\n\nThe type of the air quality heatmap. Defines the pollutant that the map will graphically represent.\n\n| Enums ||\n|------------------------|--------------------------------------------------------------------------|\n| `MAP_TYPE_UNSPECIFIED` | The default value. The server ignores it if it is passed as a parameter. |\n| `UAQI_RED_GREEN` | Universal Air Quality Index red-green palette. |\n| `UAQI_INDIGO_PERSIAN` | Universal Air Quality Index indigo-persian palette. |\n| `PM25_INDIGO_PERSIAN` | PM2.5 index indigo-persian palette. |\n| `GBR_DEFRA` | Daily Air Quality Index (UK) color palette. |\n| `DEU_UBA` | German Local Air Quality Index color palette. |\n| `CAN_EC` | Canadian Air Quality Health Index color palette. |\n| `FRA_ATMO` | France Air Quality Index color palette. |\n| `US_AQI` | US Air Quality Index color palette. |"]]