Java 以编程方式使用Bing maps API获取驾驶距离
我一直在使用Bing API,它工作得非常完美,输出latitude和longditude非常好Java 以编程方式使用Bing maps API获取驾驶距离,java,bing-maps,Java,Bing Maps,我一直在使用Bing API,它工作得非常完美,输出latitude和longditude非常好 // However I need the driving distance . . . I thought it should be result.getDrivingDistance ( System.out.println(result.getDrivingDistance); // There is no such a command
// However I need the driving distance . . . I thought it should be result.getDrivingDistance (
System.out.println(result.getDrivingDistance); // There is no such a command
// What should I do to get the distance from the response ?
有没有办法知道驾驶距离?
我一直在阅读文档,但找不到用于此的方法?路由API。Routes API用于计算行驶方向。Routes API允许您通过驾驶、步行或基于交通的算法获得路线距离计算、路线几何图形和逐步方向。您还可以在路线上最多传递25个点,以便在单个请求中计算多站路线 样本: 请查看Microsoft文档: 用Java很容易做到这一点