google-maps - Google map API - 设置 3 个纬度/经度点

标签 google-maps google-directions-api

在网址中,我们希望为行程设置 3 个点,而不是像本例那样仅设置两个:

http://maps.google.com/maps?saddr=49.34593,-123.1807&daddr=49.35037,-123.1749

我们如何做到这一点?

最佳答案

http://maps.google.com/maps?saddr=49.34593,-123.1807&daddr=49.35037,-123.1749+to:49.350,-123.17

我刚刚添加了+:和第三个纬度/经度。最好的办法是按照您想要的方式获取 map ,然后单击右上角的链接图标并拉出生成的 URL。

关于google-maps - Google map API - 设置 3 个纬度/经度点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7436898/

相关文章:

c# - 获取 https://www.google-analytics.com/ga.js net::ERR_TIMED_OUT

javascript - 未捕获的类型错误 : Cannot read property 'apply' of undefined Google Maps

google-apps-script - 提供 API key 以避免 Apps 脚本中的 map 服务出现命中限制错误

javascript - 未处理的 promise 拒绝: TypeError: undefined is not a function evaluating 'departureloc.map' occurs when mapping for setState in react native

android - 通过OnPolylineClickListener更改多条折线的颜色

javascript - 谷歌地图 + 重叠标记蜘蛛侠

android - 在 Canvas 上绘制对象/图像

javascript - 如何在 Angular 2 中使用谷歌地图

javascript - 添加actionListeners到动态创建的谷歌标记来绘制路线

google-maps - 谷歌地图。在 map 上追踪历史。由于坐标错误,路线不正确