I was trying to find the solution in (x1,y1) and (x2,y2) format. The theory goes like this: Assume I have these data: lat1=56.986969769 , long1=-97.98689698 lat2=54.98789789, long2=-96.987890878
distance = SQRT((lat1-lat2)^2+(long1-long2)^2)
But this is not the distance that I want . Which theory should I apply to get the result in meter or miles?