Places Insights API 常见问题解答
API 是否有速率限制?
对于 Places Insights API,默认速率限制为每分钟 600 次查询。
TypeFilter 中的“included_primary_types”和“included_types”有何区别?
included_primary_types
:用于过滤将指定类型作为主要或第一类别的地点。这些地点可能还有其他次要类型。
included_types
:过滤出将指定类型作为其任何类别的地点,无论是主要类型还是次要类型。
例如,使用设置为 restaurant
的 included_primary_types
进行搜索会返回主要用途为提供餐饮服务的地点,而设置为 restaurant
的 included_types
会返回提供餐饮服务的地点,即使它们还有其他主要类别(例如具有 cafe
的 museum
)也是如此。
如需了解详情,请参阅地点类型。
如何定义非圆形的自定义搜索区域?
您可以使用多边形定义自定义搜索区域。提供一个纬度和经度坐标列表,以逆时针顺序定义单个多边形的顶点。第一个坐标和最后一个坐标必须相同,才能闭合多边形。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-15。
[null,null,["最后更新时间 (UTC):2025-01-15。"],[[["The Places Insights API has a default rate limit of 600 queries per minute."],["`included_primary_types` filters for places with the specified type as their primary category, while `included_types` filters for places that include the specified type as any category."],["Custom search areas can be defined using polygons by providing latitude and longitude coordinates in a counter-clockwise order, ensuring the first and last coordinates are identical to close the shape."]]],[]]