机器人:如何计算两点之间的距离 [英] android: how to calculate distance between two points

查看:222
本文介绍了机器人:如何计算两点之间的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想两点之间计算距离。我GOOGLE了它,但所有我发现是我不希望我想知道两点之间的距离公路最短路径距离。

I want to calculate distance between two points. I googled it but all I found are shortest path distance which I do not want I want to know the road distance between two points.

推荐答案

您可以使用的http:// maps.google.com/maps?saddr= {} START_ADDRESS&安培; DADDR = {}目的地地址

You can use http://maps.google.com/maps?saddr={start_address}&daddr={destination_address}

将在方向细节给人以距离和时间沿位置的两个之间

it will give in direction detail along with distance and time in between two locations

<一个href=\"http://maps.google.com/maps?saddr=79.7189,72.3414&daddr=66.45,74.6333&ie=UTF8&0&om=0&output=kml\" rel=\"nofollow\">http://maps.google.com/maps?saddr=79.7189,72.3414&daddr=66.45,74.6333&ie=UTF8&0&om=0&output=kml

这篇关于机器人:如何计算两点之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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