science 這項產品/功能為預先發布版 (正式發布前)。正式發布前的產品和功能僅提供有限支援,且對正式發布前的產品和功能所做的變更可能與其他正式發布前的版本不相容。正式發布前產品/功能受到《
Google 地圖平台服務專屬條款》規範。詳情請參閱
推出階段說明。
Places Insights API 常見問題
API 是否有頻率限制?
Places Insights API 的預設頻率限制為每分鐘 600 次查詢。
TypeFilter 中的「included_primary_types」和「included_types」有何差異?
included_primary_types
:篩選出指定類型為主要類別的場所。這些地點也可能有其他次要類型。
included_types
:篩選出任何類別中含有指定類型的地點,不論該類型是主要或次要類型皆可。
舉例來說,如果將 included_primary_types
設為 restaurant
,搜尋結果會傳回主要提供食物的場所,但如果將 included_types
設為 restaurant
,傳回的結果會是提供食物的場所,即使這些場所屬於其他主要類別,例如含有 cafe
的 museum
。
如需進一步瞭解,請參閱「地點類型」。
如何定義非圓形的自訂搜尋區域?
您可以使用多邊形定義自訂搜尋區域。請提供緯度和經度座標清單,以逆時針方向定義單一多邊形的頂點。第一個和最後一個座標「必須」相同,才能關閉多邊形。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-15 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]