开发者

How to calculate distance between two GeoPoints with Android MapView

开发者 https://www.devze.com 2023-01-04 06:15 出处:网络
I want to know the distance of two points or the width and height开发者_如何学C distance of my current mapview in km unit. Is there any android map api to do that?This is not Map API, but the Android

I want to know the distance of two points or the width and height开发者_如何学C distance of my current mapview in km unit. Is there any android map api to do that?


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

distanceBetween

and

distanceTo

Check them out here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号