Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
Routes Preferred API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
服務:routepreferred.googleapis.com
如要呼叫這項服務,建議您使用 Google 提供的用戶端程式庫。如果應用程式需要使用您自己的程式庫呼叫這項服務,請在發出 API 要求時使用下列資訊。
探索文件
探索文件是一種機器可解讀的規格,用於說明和使用 REST API。此文件用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個探索文件。此服務提供下列探索文件:
服務端點
服務端點是指定 API 服務網路位址的基準網址。一項服務可能有多個服務端點。這項服務有以下服務端點,且下方的 URI 皆以此服務端點為基準:
https://routespreferred.googleapis.com
方法 |
computeCustomRoutes |
POST /v1alpha:computeCustomRoutes
如果指定一組航廈和中繼路線控點,而路線目標,則計算路線目標的最佳路徑。 |
computeRouteMatrix |
POST /v1alpha:computeRouteMatrix
擷取起點與目的地清單,並傳回包含路線資訊的串流,每個起點和目的地組合。 |
computeRoutes |
POST /v1alpha:computeRoutes
指定一組航廈和中繼路線控點,同時傳回主要路線以及選用替代路線。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-06-26 (世界標準時間)。"],[[["The Routes Preferred API service, `routespreferred.googleapis.com`, helps developers compute optimal routes and route matrices based on given waypoints and objectives."],["The service offers two versions: `v1alpha` and `v1`, each supporting methods like `computeCustomRoutes`, `computeRouteMatrix`, and `computeRoutes`."],["Client libraries are recommended for interacting with the service, but developers can also use the provided discovery documents and service endpoint for custom integration."],["`computeCustomRoutes` allows developers to define route objectives and receive tailored route recommendations, while `computeRoutes` provides primary and alternate routes for standard navigation."],["`computeRouteMatrix` facilitates the calculation of route information for multiple origin-destination pairs, enabling efficient analysis of travel times and distances."]]],["The `routespreferred.googleapis.com` service offers two REST resources, `v1alpha` and `v1`, accessible via the `https://routespreferred.googleapis.com` endpoint. Both versions support three `POST` methods: `computeCustomRoutes` to calculate the best route based on waypoints and objectives, `computeRouteMatrix` to retrieve route information for multiple origin-destination pairs, and `computeRoutes` to return primary and optional alternate routes between waypoints. The service provides discovery documents for each version.\n"]]