简体   繁体   English

如何在Android中找到两个区域之间的距离

[英]how to find distance between two areas in android

hi all i want to fin out distance between two places. 大家好,我想找出两个地方之间的距离。 if i go from one place to another place by street by street the distance is vary and suppose i walk within a street the latitude and longitude may not be changed. 如果我逐条街道从一个地方到另一个地方,距离是变化的,并且假设我在一条街道内行走,则纬度和经度可能不会改变。 so these method may not help me. 所以这些方法可能对我没有帮助。 is there any other way for calculating distance for my requirement it whould be great to me. 还有什么其他方法可以计算出符合我要求的距离,那对我来说会很棒。 please help me. 请帮我。

Based on what you're attempting to do I would suggest figuring out if you can implement a pedometer (walking distance meter) using the accelerometer, combine that with the coarse location API and/or the fine location API and the compass you should be able to implement a pretty good location logger. 根据您要尝试的操作,我建议您确定是否可以使用加速度计来实现计步器(步行距离计),并将其与粗略位置API和/或精细位置API以及指南针结合使用实现一个非常好的位置记录器。

Other than that I'm not sure what you're trying to do. 除此之外,我不确定您要做什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM