取得地點 ID 後,您可以使用 Places API 要求特定建築物或搜尋點的更多詳細資料,例如完整地址、電話號碼、使用者評分和評論。
Places API (新版) 的運作方式
Places API (新版) 會以含有特定服務端點 (例如 /places 或 places:searchText) 的標準網址接受要求,並傳回 JSON 回應。Places API (新版) 支援使用 API 金鑰和 OAuth 權杖進行授權。以下範例會提出 Place Details (New) 要求,使用 API 金鑰傳回地點 ID 的地址元件:
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-03-11 (世界標準時間)。"],[[["The Places API provides location data and imagery for establishments, geographic locations, and points of interest through various methods."],["You can use the Places API to create location-aware features, such as place search, autocomplete, details retrieval, and photo integration."],["The Places API offers two versions: Places API and Places API (New), with differences outlined in a guide for choosing the best fit for your project."],["You can access places data through requests to specific service endpoints using an API key or OAuth token, receiving responses in JSON or XML format."],["Detailed steps for using the API include setup, text search, place details retrieval using place IDs, and accessing place photos."]]],[]]