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

A.K.
  • 3,321
  • 1
  • 15
  • 27

1 Answers1

1

First, you need to track the location using GPS. I assume since you have GPS samples that you've done that.

Then, you need to calculate the distance between two points. Position is given in terms of latitude and longitude. See this for an example: http://www.codeproject.com/Articles/12269/Distance-between-locations-using-latitude-and-long

Deeko
  • 1,514
  • 9
  • 29