Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
開始使用
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您必須先啟用 Routes Preferred API 方法,才能在程式碼中使用這些方法。
如要在專案中啟用 Routes Preferred API 方法,請按照下列步驟操作:
登入 Cloud 控制台,然後選取專案選取分頁標籤:

在「Select from」視窗中,選取「New Project」。

指定專案的名稱和位置,然後選取「建立」。

請與您的 Google 代表聯絡。
如果您尚未為專案啟用 Routes Preferred API,請前往 Google Cloud 控制台的 API 和服務程式庫。如果已啟用「優先使用路線」,請略過這個步驟。

接著搜尋「Routes Preferred」,開啟 Routes Preferred API。

如要啟用 API,請選取「啟用」。
如果您尚未擁有與專案相關聯的 API 金鑰,請前往「憑證」分頁。如果您已擁有 API 金鑰,可以略過這個步驟。

依序選取「建立憑證」和「API 金鑰」。

除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-04-24 (世界標準時間)。
[null,null,["上次更新時間:2025-04-24 (世界標準時間)。"],[[["\u003cp\u003eTo utilize Routes Preferred API, you must first enable it for your project through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the API involves creating a new project, contacting your Google representative, and enabling the Routes Preferred API in the API library.\u003c/p\u003e\n"],["\u003cp\u003eMake sure to check and adjust your quota limits as needed and create an API key for your project to use the Routes Preferred API.\u003c/p\u003e\n"]]],[],null,["# Getting Started\n\nBefore you can use Routes Preferred API methods in your\ncode, you must enable them.\n\nTo enable Routes Preferred API methods with your project:\n\n1. Log in to [Cloud console](https://console.cloud.google.com)\n and select the project selection tab:\n\n2. In the **Select from** window, select **New Project**.\n\n3. Specify a name and location for the project, and then select **Create**.\n\n4. Contact your Google representative.\n\n5. If you don't already have the Routes Preferred API enabled for\n your project, navigate to the APIs \\& Services Library in Google Cloud console.\n You can skip this step if Routes Preferred is already enabled.\n\n Then search for *Routes Preferred* to open the Routes Preferred API.\n\n To enable the API, select **Enable**.\n | **Important:** Check your quota limits for Routes Preferred API methods. If you need to increase your quota limits, contact support by filing a case on the [Google Maps Platform support page](https://console.cloud.google.com/google/maps-apis/support) in the Google Cloud Console, or by calling the [Google Cloud Support Hotline](/maps/documentation/routes_preferred/support#support_hotline).\n6. If you don't already have an API key associated with your project,\n navigate to the Credentials tab. You can skip this step if you already\n have an API key.\n\n Select **Create Credentials** , and then **API Key**."]]