路线演示
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在“路线”演示中,您可以将出发地和目的地指定为纬度/经度坐标对或地点 ID。如需复制纬度/经度坐标,请在地图上找到并点击某个位置,然后将该位置粘贴到表单中。
选择获取路线后,演示会显示 computeRoutes 方法的响应,即地图上的路线。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-28。
[null,null,["最后更新时间 (UTC):2025-08-28。"],[],[],null,["The 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."]]