Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
開始使用
在使用 Routes Preferred API 方法之前,
就必須加以啟用
如要在專案中啟用 Routes Preferred API 方法,請按照下列步驟操作:
登入 Cloud 控制台
並選取專案選項分頁標籤:
![選取專案選取分頁](https://developers.google.cn/static/maps/documentation/routes_preferred/images/project_selection.png?authuser=1&hl=zh-tw)
在「Select from」視窗中,選取「New Project」。
![選取新專案](https://developers.google.cn/static/maps/documentation/routes_preferred/images/new_project.png?authuser=1&hl=zh-tw)
指定專案名稱和位置,然後選取「建立」。
![建立專案](https://developers.google.cn/static/maps/documentation/routes_preferred/images/create_project.png?authuser=1&hl=zh-tw)
請與您的 Google 代表聯絡。
如果您尚未為
請前往 API,Google Cloud 控制台中的 Service Library。
如果已啟用「首選路徑」功能,請略過這個步驟。
![前往媒體庫](https://developers.google.cn/static/maps/documentation/routes_preferred/images/navigate_library.png?authuser=1&hl=zh-tw)
然後搜尋「Routes Preferred」以開啟 Routes Preferred API。
![開啟 API](https://developers.google.cn/static/maps/documentation/routes_preferred/images/open_api.png?authuser=1&hl=zh-tw)
如要啟用 API,請選取「啟用」。
如果您的專案還沒有 API 金鑰,
前往「憑證」分頁。您可以略過這個步驟
已有 API 金鑰
![前往「憑證」分頁](https://developers.google.cn/static/maps/documentation/routes_preferred/images/go_credentials.png?authuser=1&hl=zh-tw)
選取「建立憑證」,然後選取「API 金鑰」。
![選取 API 金鑰](https://developers.google.cn/static/maps/documentation/routes_preferred/images/api_key.png?authuser=1&hl=zh-tw)
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-05 (世界標準時間)。
[null,null,["上次更新時間:2024-08-05 (世界標準時間)。"],[[["To utilize Routes Preferred API, you must first enable it for your project through the Google Cloud console."],["Enabling the API involves creating a new project, contacting your Google representative, and enabling the Routes Preferred API in the API library."],["Make sure to check and adjust your quota limits as needed and create an API key for your project to use the Routes Preferred API."]]],[]]