Topic: Flight Distance between points
Hi
When using OnlineMapsUtils.DistanceBetweenPoint (http://infinity-code.com/doxygen/online … dd617a6d18)
To get the actual distance between the two point, sqrt(dx*dx+dy*dy) should give the correct value in km ?
Now if i want the distance between two points, which are at different altitude:
OnlineMapsUtils.DistanceBetweenPoint give me the distance between those two point at ground 0, so i was planning to use a simple Pythagore formula to get the "real" distance.
But, if i'm not mistaken, OnlineMapsUtils.DistanceBetweenPoint doesn't calculate a straight line lentgh but an arc (since the earth is not flat and we are using lat/lng )
So Pythagore doesn't seems like a correct way to go ?
How should i proceed to get a correct flight distance between two waypoints at different altitude ?