2 ms·
Sure! It's pretty straightforward actually. The first approach (which is a simplification) uses the usual way to calculate a distance between two points on a F
by piotrjaw 4y ago
Sure! It's pretty straightforward actually.
The first approach (which is a simplification) uses the usual way to calculate a distance between two points on a FLAT plane, which using is the Pythagorean Theorem. So d = √((y1 - y2)^2 + (x1 - x2)^2).
The second approach uses the haversine formula: https://en.wikipedia.org/wiki/Haversine_formula https://en.wikipedia.org/wiki/Haversine_formula which takes the curvature of the Earth into account, and also the fact that one degree in longitude is a different distance depending on the latitude.
- bunabhucan 4y agoSorry, I was asking for the numeric answers, I'm genuinely curious about the distance values of the two pairs of numbers using the two formula.