Pollen API 常见问题解答
API 是否有速率限制?
对于 Pollen API,默认速率限制为每分钟 6000 次查询。
我是否必须启用结算功能?
您必须拥有有效的结算账号才能使用 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):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["The Pollen API has a rate limit of 6,000 queries per minute and requires a valid billing account for usage."],["Requests 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."]]],["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"]]