Google Map distance-matrix api 经纬度的服务器端多地址

Google Map distance-matrix api Serverside multiple address by latlong

https://www.npmjs.com/package/google-distance-matrix 例如,我们可以添加多个目的地作为 latlong 对,

服务器端代码就像

string Test = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=Lat1,long1&destinations=Lat2,long2&sensor=false"

现在的问题是如何在多源目的地模式下使用它 我们可以吗 像

string Test = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=Lat1,long1,lat2,long2&destinations=Lat3,long3,Lat4,long4&sensor=false"

例子

http://maps.googleapis.com/maps/api/distancematrix/json?origins=23.020284,72.4396566&destinations=22.3039702,70.7671403&sensor=false http://maps.googleapis.com/maps/api/distancematrix/json?origins=23.027100,72.508000&destinations=22.999500,72.600300&sensor=false

两者的组合

http://maps.googleapis.com/maps/api/distancematrix/json?origins=23.020284,72.4396566,23.027100,72.508000&destinations=22.3039702,70.7671403,22.999500,72.600300&sensor=false

我用“|”解决了定界符。 谢谢大家