science 這項產品/功能為預先發布版 (正式發布前)。正式發布前的產品和功能僅提供有限支援,且對正式發布前的產品和功能所做的變更可能與其他正式發布前的版本不相容。正式發布前產品/功能受到《
Google 地圖平台服務專屬條款》規範。詳情請參閱
推出階段說明。
設定 Google Cloud 專案
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本指南說明如何事先設定 Google Cloud 專案,做好使用 Google 地圖平台 API 的準備。您可能已依照「開始使用 Google 地圖平台」頁面說明完成以下部分步驟,但仍建議參閱本文的其他實用操作說明,瞭解如何進一步妥善管理專案。
建立專案
如要使用 Google 地圖平台,請建立用來管理服務、憑證、帳單、API 和 SDK 的專案。
每個專案都需要設定帳單資訊,但只有當專案的費用超出免付費服務配額時,系統才會收取費用。
請按照下列步驟操作,即可建立 Cloud 專案並啟用計費功能:
控制台
-
在 Cloud 控制台中建立新的 Google Cloud 專案:
建立新專案
-
在「New Project」(新增專案) 頁面輸入以下必要資訊:
-
專案名稱:接受預設值或輸入自訂名稱。
您隨時都能變更專案名稱。詳情請參閱「識別專案」。
-
專案 ID:接受預設值,或是按一下「EDIT」(編輯) 再輸入自訂 ID,這會是 Google API 使用的專案專屬 ID。
建立專案後就「無法」變更專案 ID,因此請選用方便您在整個專案執行期間使用的專案 ID。請勿在專案 ID 中加入任何機密資訊。
-
帳單帳戶:選取專案的帳單帳戶。如果尚未設定帳單帳戶或只有一個帳單帳戶,就不會看到這個選項。
只有帳單帳戶管理員或專案帳單管理員,才能將專案連結至帳單帳戶。詳情請參閱帳單存取權控管說明文件。
-
位置:如要將專案連結至特定機構,請點按「Browse」(瀏覽) 並選取該機構;如果不連結任何機構,請選擇「No organization」(無機構)。
詳情請參閱「建立及管理資料夾」和「機構、專案和帳單帳戶間的關係」。
選取「Create」(建立)。
啟用計費功能
請啟用計費功能,才能部署應用程式。只要未超過每月配額,系統就不會收取費用。如果應用程式需要的資源超過每月配額,系統就會收取額外用量的費用。
如果您在建立 Cloud 專案時已經有帳單帳戶,系統會自動啟用該專案的計費功能。
請按照下列步驟操作,即可啟用 Cloud 專案的計費功能:
- 前往 Cloud 控制台中的「Billing」(帳單) 頁面:
前往「Billing」(帳單) 頁面
- 選取或建立 Cloud 專案。
- 系統會根據您是否已有帳單帳戶,或是否已將所選 Cloud 專案連結至特定帳戶,在「Billing」(帳單) 頁面中顯示下列其中一項資訊:
- 如果所選 Cloud 專案已啟用計費功能,系統會列出帳單帳戶的詳細資料。
- 如果還沒有帳單帳戶,系統會提示您建立,並將該帳戶連結至所選 Cloud 專案。
- 如果已經有帳單帳戶,但所選 Cloud 專案尚未連結至該帳戶,系統會提示您啟用計費功能。您也可以依序選取「Cancel」(取消) 和「Create account」(建立帳戶),來建立並連結新的帳單帳戶。
啟用計費功能後不會有收費上限。如要進一步控管費用,請參閱「建立預算並設定快訊」一文。詳情請參閱計費方式。
啟用 API
Cloud SDK
使用下列指令前,請先替換以下項目:
-
RESOURCE_TYPE 則替換為要建立服務代理程式的資源類型。請使用
project
、folder
或 organization
。
-
RESOURCE_ID 替換為要建立服務代理程式的 Google Cloud 專案、資料夾或機構 ID。專案 ID 為英數字串,例如
my-project
。資料夾和機構 ID 為數字,例如 123456789012
。
gcloud beta services identity create \
--service=analyticshub.googleapis.com \
--RESOURCE_TYPE=RESOURCE_ID
查看已啟用的 API
關閉專案
您可以關閉專案來停用計費功能,並釋出 Cloud 專案使用的所有 Cloud 資源,操作步驟如下:
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[],[],null,["# Set up your Google Cloud project\n\nThis guide shows how to set up your Google Cloud project before using\nthe Google Maps Platform APIs. While you may have completed some of these\nsteps in the\n\n[Getting started with Google Maps Platform](/maps/get-started) page,\nthis document provides additional, useful instructions for managing your projects.\n\nCreate a project\n----------------\n\nTo use Google Maps Platform, you must have a project to manage services,\ncredentials, billing, APIs, and SDKs.\n\n[Billing setup](#billing) is required for each project, but you will only be charged if a\nproject exceeds its [quota](/maps/billing-and-pricing/billing#monthly-credit) of no-charge services.\n\nTo create a Cloud project with billing enabled: \n\n### Console\n\n1. Create a new Google Cloud project in the Cloud console:\n\n [Create new project](https://console.cloud.google.com/projectcreate?utm_source=Docs_NewProject&utm_content=Docs_CONSOLE_ID)\n2. On the **New Project** page, fill in the required information:\n\n - **Project name:** Accept the default or enter a customized name.\n\n You can change the project name at any time. For more information, see\n [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects).\n - **Project ID:** Accept the default or click **EDIT** to enter a\n customized ID that Google APIs use as a unique identifier for your project.\n\n After you create the project, you *cannot* change the project ID, so\n choose an ID that you'll be comfortable using for the lifetime of the\n project. Don't include any sensitive information in your project ID.\n - **Billing account:** Select a billing account for the project. If you\n haven't set up a billing account or only have one billing account, you\n won't see this option.\n\n You must be a Billing Account Administrator or Project Billing Manager\n to associate a project with a billing account. For more information, see\n [the billing access control documentation](https://cloud.google.com/billing/docs/how-to/billing-access#overview_of_billing_roles_in).\n - **Location:** If you have an organization you want to link your project\n to, click **Browse** and select it; otherwise, choose \"No organization\".\n\n For more information, see [Creating and Managing Folders](https://cloud.google.com/resource-manager/docs/creating-managing-folders)\n and [Relationships between organizations, projects, and billing accounts](https://cloud.google.com/billing/docs/how-to/billing-access#relationships-between-resources).\n3. Select **Create**.\n\n### gcloud\n\n```bash\ngcloud projects create \"\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e\"\n```\n\nRead more about the\n[Google Cloud SDK](https://cloud.google.com/sdk)\n,\n[Cloud SDK installation](https://cloud.google.com/sdk/docs/install)\n, and the following commands:\n\n- [`gcloud projects create`](https://cloud.google.com/sdk/gcloud/reference/projects/create)\n\nEnable billing\n--------------\n\nTo deploy your apps, you must enable billing. Your account won't be charged\nif you stay within your [monthly quota](/maps/billing-and-pricing/billing#monthly-credit).\nIf your application needs resources that exceed the monthly quota, you will be\ncharged for the additional usage.\n\nIf you have a billing account when you create a Cloud\nproject, then billing is automatically enabled on that project.\n\nTo enable billing on a Cloud project:\n\n1. In the Cloud console, go to the Billing page: \n [Go to the Billing page](https://console.cloud.google.com/projectselector/billing?utm_source=Docs_Billing&utm_content=Docs_CONSOLE_ID)\n2. Select or create a Cloud project.\n3. Depending on if a billing account exists or if the selected Cloud project is associated with an account, the Billing page displays one of the following:\n - If billing is already enabled for the selected Cloud project, then the details about the billing account are listed.\n - If no billing account exists, you are prompted to create a billing account and associate it with the selected Cloud project.\n - If a billing account exists, you are prompted to enable billing if the selected Cloud project is not already associated with a billing account. You can also select **Cancel** and then select **Create account** to create and associate a new billing account.\n\nAfter you enable billing, there is no limit to the amount that you might\nbe charged. To gain more control over your costs, you can\n[create\na budget and set alerts](/maps/billing-and-pricing/billing#creating-budgets-and-set-alerts). For more information, see [Billing](/maps/billing-and-pricing/billing).\n\nEnable APIs\n-----------\n\n### Console\n\n\n[Enable Vertex AI](https://console.cloud.google.com/apis/library/aiplatform.googleapis.com)\n\n\n[Enable BigQuery](https://console.cloud.google.com/apis/library/bigquery.googleapis.com)\n\n\n[Enable Cloud Storage](https://console.cloud.google.com/apis/library/storage-component.googleapis.com)\n\n\n[Enable Analytics Hub API](https://console.cloud.google.com/apis/library/analyticshub.googleapis.com)\n\n### Cloud SDK\n\nBefore using the command below, replace the following:\n\n- \u003cvar label=\"RESOURCE_TYPE\" translate=\"no\"\u003eRESOURCE_TYPE\u003c/var\u003e with the type of resource that you want to create a service agent for. Use `project`, `folder`, or `organization`.\n- \u003cvar label=\"RESOURCE_ID\" translate=\"no\"\u003eRESOURCE_ID\u003c/var\u003e with the ID of the Google Cloud project, folder, or organization that you want to create a service agent for. Project IDs are alphanumeric strings, like `my-project`. Folder and organization IDs are numeric, like `123456789012`.\n\n```bash\ngcloud beta services identity create \\\n --service=analyticshub.googleapis.com \\\n --RESOURCE_TYPE=RESOURCE_ID\n```\n\nView enabled APIs\n-----------------\n\n### Console\n\nTo view the APIs or SDKs you have enabled, go to the Google Maps Platform page\nin the Cloud console:\n[Go to Google Maps Platform page](https://console.cloud.google.com/project/_/google/maps-apis/api-list?utm_source=Docs_ProjectViewAPI&utm_content=Docs_CONSOLE_ID)\n\n- Additional APIs: These API or SDKs are not enabled.\n- If you see cards for each Map APIs and services, no APIs or SDKs have been enabled.\n\n### gcloud\n\n```bash\ngcloud services list --project \"\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e\"\n```\n\nRead more about the\n[Google Cloud SDK](https://cloud.google.com/sdk)\n,\n[Cloud SDK installation](https://cloud.google.com/sdk/docs/install)\n, and the following commands:\n\n- [`gcloud services list`](https://cloud.google.com/sdk/gcloud/reference/services/list)\n\nShut down a project\n-------------------\n\nYou can disable billing and release all the Cloud resources that\nare being used in your Cloud project by shutting down\nthat project: \n\n### Console\n\n1. Go to the Projects page:\n\n [Go to the Projects page](https://console.cloud.google.com/iam-admin/projects?utm_source=Docs_ProjectShutdown&utm_content=Docs_CONSOLE_ID)\n2. Select the Cloud project that you want to shut down,\n then click **Delete**.\n\nFor more information about managing your Cloud\nprojects, see [Cloud Resource Manager: creating, shutting down, and restoring projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects).\n\n### gcloud\n\n```bash\ngcloud projects delete \"\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e\"\n```\n\nRead more about the\n[Google Cloud SDK](https://cloud.google.com/sdk)\n,\n[Cloud SDK installation](https://cloud.google.com/sdk/docs/install)\n, and the following commands:\n\n- [`gcloud projects delete`](https://cloud.google.com/sdk/gcloud/reference/projects/delete)\n\nWhat's next\n-----------\n\n- [Classify images](/maps/documentation/imagery-insights/get-started).\n- [Review the table schemas](/maps/documentation/imagery-insights/reference)."]]