Pollen API 常见问题解答
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
API 是否有速率限制?
对于 Pollen API,默认速率限制为每分钟 6,000 次查询。
我是否必须启用结算功能?
您必须拥有有效的结算账号才能使用 Pollen API。如需为项目设置结算账号,请参阅启用结算功能。
如果我查询不支持的位置,会发生什么情况?
如果纬度和经度不在支持的国家/地区列表中,响应将返回 400 错误代码,并显示消息“此位置的信息不可用。请尝试其他位置。”
如果植物没有花粉数据,但在相应国家/地区受支持,会怎么样?
如果所选位置和日期没有花粉数据,则响应会包含所请求位置中涵盖的所有植物的植物代码和显示名称,但不包含其他数据字段。例如:
"dailyInfo": [
{
"date": {
"year": 2023,
"month": 6,
"day": 22
},
"pollenTypeInfo": [
{
"code": "GRASS",
"displayName": "Grass"
},
{
"code": "TREE",
"displayName": "Tree"
},
{
"code": "WEED",
"displayName": "Weed"
}
],
"plantsInfo": [
{
"code": "HAZEL",
"displayName": "Hazel"
}
{
...
}
]
}
]
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThe Pollen API has a rate limit of 6,000 queries per minute and requires a valid billing account for usage.\u003c/p\u003e\n"],["\u003cp\u003eRequests for unsupported locations result in a 400 error, while requests for supported locations with missing pollen data return plant codes and display names without other data fields.\u003c/p\u003e\n"]]],["The Pollen API has a default rate limit of 6,000 queries per minute, and a valid billing account is required for use. Querying unsupported locations results in a 400 error. If a location lacks pollen data but is within a supported country, the API returns the plant codes and display names without other data, such as pollen levels or counts. The response format shows date, plant type code, and display name.\n"],null,["# Pollen API FAQ\n\nIs there a rate limit on the API?\n---------------------------------\n\nFor Pollen API, there is a default rate limit of 6,000 queries per\nminute.\n\nDo I have to enable billing?\n----------------------------\n\nA valid billing account is required to use the Pollen API. See [Enable\nbilling](/maps/documentation/pollen/cloud-setup#billing) to set up your project with a billing account.\n\nWhat happens if I query a location that is not supported?\n---------------------------------------------------------\n\nIf the latitude and longitude are not covered in the [supported country\nlist](/maps/documentation/pollen/coverage), the response will return a 400 error\ncode with the message, \"Information is unavailable for this location. Please try\na different location.\"\n\nWhat happens if the plant has no pollen data but is supported in the country?\n-----------------------------------------------------------------------------\n\nIn cases where there is no pollen data for the selected location and date, the\nresponse includes the plant code and display name for all plants covered in the\nrequested location with no other data fields. For example: \n\n```json\n\"dailyInfo\": [\n {\n \"date\": {\n \"year\": 2023,\n \"month\": 6,\n \"day\": 22\n },\n \"pollenTypeInfo\": [\n {\n \"code\": \"GRASS\",\n \"displayName\": \"Grass\"\n },\n {\n \"code\": \"TREE\",\n \"displayName\": \"Tree\"\n },\n {\n \"code\": \"WEED\",\n \"displayName\": \"Weed\"\n }\n ],\n \"plantsInfo\": [\n {\n \"code\": \"HAZEL\",\n \"displayName\": \"Hazel\"\n }\n {\n ...\n }\n ]\n }\n]\n```"]]