路線示範
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
在路線示範中,您可以將起點和目的地指定為經緯度座標組或地點 ID。如要複製經緯度座標,請在地圖上找出並點選地點,然後將地點貼到表單中。
選取「Get route」(取得路線) 後,示範會顯示 computeRoutes 方法的回應,也就是地圖上的路線。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-28 (世界標準時間)。
[null,null,["上次更新時間:2025-08-28 (世界標準時間)。"],[],[],null,["**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nThe Route demo lets you specify an origin and destination as a\nlatitude/longitude coordinates pair or as a place ID. To copy the latitude/longitude\ncoordinates, find and click a location on the map, and then paste the location into the\nform.\n\nAfter you select **Get route** , the demo displays the response from the\n[computeRoutes](/maps/documentation/javascript/reference/route#Route.computeRoutes)\nmethod as a route on the map."]]