Calculating distance between coordinates



Is there any method to calculate the distance between coordinates other than the Haversine formula?
As the error accounted for is sometimes too vague.

Even I can decrease or increase the distance but sometimes it increased the distance by 20-40% and sometimes it decreases.


Are you maybe looking for Euclidean distance?


No, not this one. As it will calculate distance between any 2 given points as a straight line.