5

How to calculate the distance between 2 places by using the GPS coordinates?

uɐɪ
  • 2,540
  • 1
  • 20
  • 23
  • 1
    Duplicate of http://stackoverflow.com/questions/1420045/how-to-find-distance-from-the-latitude-and-longitude-of-two-locations – Lior Kogan May 27 '11 at 07:49
  • You may be using this algorithm in an embedded environment but there is nothing in the question to link it to embedded computing. Question re-tagged. – uɐɪ May 31 '11 at 15:01

1 Answers1

3

http://en.wikipedia.org/wiki/Great-circle_distance

(Pythagorean theorem won't be enough because of earth's sphericity)

Igor
  • 26,650
  • 27
  • 89
  • 114