Places API (新版) 提供更佳的效能和全新的定價模式,因此值得您更新使用 Places API 的應用程式。如要進一步瞭解功能比較,請參閱「選擇 API」。
請參閱本指南,瞭解 Places API (新版) 與 Places API 的主要差異,以及如何處理必要的變更。
遷移作業的帳單最佳做法
warning_amber
如果您的 API 用量足以進入第二級定價,就適用這項指引。遷移至較新版本的 API 時,您也會被收取其他 SKU 的費用。為避免在轉換期間增加費用,建議您盡可能在月初切換至實際執行環境中的新 API。這樣可確保您在遷移月份達到最具成本效益的每月定價層級。如要瞭解價格等級,請參閱定價頁面和定價常見問題。
啟用 Places API (新版)
如要使用 Places API (新版) 的功能,您必須先在 Google Cloud 專案中啟用 Places API (新版)。詳情請參閱「設定 Google Cloud 專案」。
接著,請確認您已將 Places API (新版) 新增至應用程式使用的 API 金鑰。詳情請參閱「使用 API 金鑰」。
[[["容易理解","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-01-14 (世界標準時間)。"],[[["Places API (New) offers enhanced performance and a revised pricing structure, prompting updates for applications utilizing the Places API."],["To optimize billing, it's recommended to transition to the new APIs at the start of a month to leverage cost-effective pricing tiers."],["Enabling Places API (New) requires activation in your Google Cloud project and potentially adding it to your API key."],["Key changes encompass support for API keys and OAuth, JSON-only responses, mandatory field masking for certain APIs, and adjusted response formats."],["API-specific migration guides are available for Nearby Search, Text Search, Place Details, Place Photo, and Autocomplete, detailing necessary adjustments."]]],[]]