卡车的距离 [英] Distances for Trucks

查看:96
本文介绍了卡车的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想计算一条路线上多个点之间的点到点距离,但我想要它用于卡车。

I want to calculate point to point distances between multiple points on a route, but I want it for trucks.

我看到我可以为卡车计算路线,但是我不需要所有的街道信息,我只需要距离。

I see that I can calculate a route for trucks, but I don't need all the street info, I just need distances.

另外,我想要一次指向多个位置的点距离,但我不需要矩阵。

Also, I want point to point distances for several locations at once, but I don't need a matrix.

我确实需要从A点到B点的距离,然后B点到C点等等。 我不关心从A点到C点或D点的距离。

I literally need distance from point A to point B then point B to Point C, etc.  I don't care about the distances from point A to point C or D.

我是否可以使用单个API调用来获取此信息并仅获取此信息?

Is there a single API call I can use to get this and only this information?

我意识到我可以做一个矩阵,然后只查看0到1,1到2和2到3的数据,但这似乎比需要的工作更多。

I realize I could do a matrix and then look at only the 0 to 1, 1 to 2 and 2 to 3 data, but that seems like more work than should be necessary.

但是,那么,我可以再做一个矩阵并结合卡车信息吗?

But, then again, can I do a matrix and combine in the truck information?

推荐答案

实际上有一个API就是为了这个目的。   它被称为卡车路由API,它在此处记录:

There is actually an API just for this purpose.   It is called the Truck Routing API and it is documented here:

https://msdn.microsoft.com/en-us/library/mt814923.aspx?f=255& MSPPError = -2147217396

https://msdn.microsoft.com/en-us/library/mt814923.aspx?f=255&MSPPError=-2147217396


这篇关于卡车的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆