Place Search
Places API 可讓您使用各種類別搜尋地點資訊,包括建築物、重要搜尋點和地理位置。您可以依據距離或文字字串搜尋地點。Place Search 會傳回地點清單,以及每個地點的摘要資訊;您可以使用 Place Details 查詢取得其他資訊。
比較搜尋類型
有三個搜尋端點可供使用,各自具有不同的特性。下表重點列出其中一些差異。
欄位選取
您無法限制「搜尋附近」或「搜尋文字」只傳回特定欄位。為避免要求並支付不需要的資料,請改用 Find Place 要求。
含糊不清的文字
Find Place 和 Text Search 會針對在多個欄位中比對含糊不清的文字進行最佳化調整,而 Nearby Search 則會限制在部分欄位上進行嚴格比對。
其他篩選條件
Nearby Search 和 Text Search 允許使用額外參數篩選結果 (例如 minprice
、maxprice
、opennow
和 type
)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-14 (世界標準時間)。
[null,null,["上次更新時間:2025-01-14 (世界標準時間)。"],[[["The Places API allows you to search for places using categories like establishments, points of interest, and geographic locations by proximity or text string."],["You can utilize the Places API with various platforms, including JavaScript, Web Service, and client libraries for server-side applications."],["For client-side development, consider the Places SDK for Android, iOS, and the Places Library for the Maps JavaScript API."],["Three search endpoints are available: Find Place, Nearby Search, and Text Search, each with unique characteristics like field selection and ambiguous text handling."],["Nearby Search and Text Search offer additional filters such as `minprice`, `maxprice`, `opennow`, and `type` to refine results."]]],[]]