谷歌地图指示失败saddr daddr

时间:2015-10-20 07:07:08

标签: google-maps

我正在使用此语法发送电子邮件中的路线

https://maps.google.com/maps?saddr=58.2835809,12.269723200000044&daddr=58.03126090000001,12.803917500000011+to:58.03126090000001,12.803917500000011+to:58.2583346,12.95071710000002+to:58.2835809,12.269723200000044

这已停止在Android和iPhone中运行,但仍可在桌面浏览器中使用。我试图在网上找到解决方案,但未能这样做。有什么想法吗?

2 个答案:

答案 0 :(得分:2)

这是"经典"谷歌地图的指示,从未记录(由谷歌)。您可以使用记录在案的Embed API

https://www.google.com/maps/embed/v1/directions
  ?key=YOUR_API_KEY
  &origin=58.2835809,12.269723200000044
  &destination=58.03126090000001,12.80391750000001
  &waypoints=58.03126090000001,12.803917500000011|58.2583346,12.95071710000002|58.2835809,12.269723200000044

working example

答案 1 :(得分:0)