Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
開始使用 Agentic UI 工具包
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本指南可協助您開始使用地圖平台代理式 UI 工具包。
1. API 金鑰
使用 Google Gemini API 金鑰初始化工具包。您可以在 Google AI Studio 免費取得金鑰。
您也需要 Google Maps Platform API 金鑰,才能讓工具包算繪 Maps 及呼叫其他地理工具。您可以在 Google Cloud 控制台中建立金鑰,並啟用必要的 API。
您的 Google 地圖平台 API 金鑰必須啟用下列 API:
- Geocoding API
- Maps JavaScript API
- Places UI Kit
- Routes API
如要使用 Grounding Lite MCP,也必須啟用 Maps Grounding Lite API。
您可以在 GitHub 取得工具包,並在範例存放區中找到範例。
提供意見
如要提供有關地圖代理 UI 工具包的意見,請填寫下列表單:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-22 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2026-05-22 (世界標準時間)。"],[],[]]