Places Aggregate API(以前称为 Places Insights API)现已正式发布 (GA)。
Places Aggregate API 常见问题解答
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
API 是否有速率限制?
对于 Places Aggregate API,默认速率限制为每分钟 1,200 次查询。
TypeFilter 中的“included_primary_types”和“included_types”有何区别?
included_primary_types
:过滤出指定类型是其主要或首要类别的地点。这些地点也可能具有其他辅助类型。
included_types
:过滤具有指定类型作为其任何类别的地点,无论该类型是主要类型还是次要类型。
例如,如果将 included_primary_types
设置为 restaurant
,则搜索结果会返回主要功能是提供食物的地点;如果将 included_types
设置为 restaurant
,则搜索结果会返回提供食物的地点,即使这些地点还有其他主要类别,例如带有 cafe
的 museum
。
如需进一步了解,请访问地点类型。
如何定义非圆形自定义搜索区域?
您可以使用多边形定义自定义搜索区域。提供一个纬度和经度坐标列表,用于以逆时针顺序定义单个多边形的顶点。第一个和最后一个坐标必须相同,才能闭合多边形。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Places Aggregate API FAQ\n\nIs there a rate limit on the API?\n---------------------------------\n\nFor Places Aggregate API, there is a default rate limit of\n1,200 queries per minute.\n\nWhat is the difference between 'included_primary_types' and 'included_types' in the TypeFilter?\n-----------------------------------------------------------------------------------------------\n\n- `included_primary_types`: Filters for places where the specified types are their main or primary category. These places might also have other secondary types.\n- `included_types`: Filters for places that have the specified types as any of their categories, regardless of whether it's the primary or secondary type.\n\nFor example, a search using `included_primary_types` set to `restaurant` would\nreturn places whose primary function is to serve food, whereas `included_types`\nset to `restaurant` would return places that serve food even if they have\nanother primary category, such as a `museum` with a `cafe`.\n\nFor further reading, visit [Place Types](/maps/documentation/places/web-service/place-types).\n\nHow do I define a custom search area that isn't a circle?\n---------------------------------------------------------\n\nYou can define a custom search area using a polygon. Provide a list of latitude\nand longitude coordinates that define the vertices of a single polygon in a\ncounter-clockwise order. The first and last coordinates *must* be the same to\nclose the polygon."]]