如何使用javascript在谷歌距离矩阵api中传递多个路径点

问题描述

你好,我想在谷歌距离矩阵 API 中传递多个路径点

目前我正在通过这个

 "https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins="+originsLatLong+"&destinations="+destinationLatLong;
            url = url+"&key="+googleMapKey;

但是我要通过多个路径点

喜欢这个api

https://maps.googleapis.com/maps/api/staticmap?zoom=15&size=600x600&maptype=roadmap&path=color:0x0000ff|weight:3|26.8415368,75.804844|26.842256703993666,75.80808773014743|26.844134194244713,75.80782017832321|26.84816416862642,75.80965364469634|26.851396259886187,75.81109081772398|26.854319586816906,75.80928677934519|26.855176261161244,75.80702835940984&markers=26.8415368,75.804844|26.855176261161244,75.80702835940984&key=KEY

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)