如何计算两个GeoPoints与Android图形页面之间的距离 [英] How to calculate distance between two GeoPoints with Android MapView

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

问题描述

我想知道的两个点的距离或在千米单元我的当前图形页面的宽度和高度的距离。是否有任何Android的地图API来做到这一点?

I want to know the distance of two points or the width and height distance of my current mapview in km unit. Is there any android map api to do that?

推荐答案

这是不是地图API,但是在Android SDK的位置类有方法,如

This is not Map API, but the Android SDK's Location class has methods like

distanceBetween

distanceTo

检查出来这里

这篇关于如何计算两个GeoPoints与Android图形页面之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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