2

I am developing a distance tracker application in which I am calculating the distance travelled by phone from the point I started to the point I ended with. I have tried with samples of GPS and acceleromeer but still confused with the actual key for the problem . Please suggest me with few solutions if you understood what my requirement is.

Thanks in advance

4

1 回答 1

1

首先,您需要使用 GPS 跟踪位置。我假设因为您有 GPS 样本,所以您已经这样做了。

然后,您需要计算两点之间的距离。位置是根据纬度和经度给出的。请参阅此示例: http: //www.codeproject.com/Articles/12269/Distance-between-locations-using-latitude-and-long

于 2013-06-19T12:54:51.060 回答