0

I have confusion calculating the distance between two GPS points is distance or displacement?

Like there are two coordinates (A&B) which are on same x axis with respect to earth. But i take a long u-turn to reach from A to B. i think it will only give me a displacement?

Saurav Nagpal
  • 1,247
  • 1
  • 10
  • 27

2 Answers2

1

The word distance between two GPS coordinates is well defined.

It is the shortest distance (along the great circle on a sphere) between two points on earth.

Also called line of sight distance. (But this explanation is not perfect since the earth is aproximated as sphere) It has nothing to do with road distance, etc. Whether or not you made a u-turn, has nothing to do with the term distance.

About U-Turn: You probably mean the length of the path you walked/drove between start and end point. But this is the trip distance or road distance, or route distance. Sometimes for simplicity abreviated with distance.

From the context it depends what is meant with distance. The ios Location API delivers the great circle distance between two points. (Probably calculated with the haversine formula)

AlexWien
  • 28,470
  • 6
  • 53
  • 83
0

Its distance - for two points but if you are trying to get the distance from start point and end point it could be displacement.

Eg. Suppose that your have four points A, B, C, D

If you have get the distance between A & D

Total Distance (Path Distance) = distance b/w A and B + distance b/w b and C + distance b/w C & D

Displacement = distance b/w A and D

abhishekkharwar
  • 3,529
  • 2
  • 18
  • 31
  • Your explanation is wrong. You are explaing the length of the polyline A,B,C;D. – AlexWien Jun 09 '15 at 16:22
  • @AlexWien From his question he is asking if he has multiple point and he is trying to get the total distance b/w start point and end point (like total distance of walking or running) but when he was trying to get distance b/w start point and end point he is not getting exact value (suppose that your start point and end point are same then your answer will be 0). So thats why he as to get distance b/w all point and has to add all values. – abhishekkharwar Jun 10 '15 at 05:48
  • this then is called a path distance or length of path – AlexWien Jun 10 '15 at 16:09
  • Yes, and that is what @saurav looking for. – abhishekkharwar Jun 11 '15 at 06:23