Month: January 2007

  • Computing distances with Lat/Lon

    Have you ever wanted to compute distances with latitude and longitude? At first it seems so simple. We all learned the pythagorean theorem in elementary school: d=sqrt((x2 – x1)^2 + (y2 – y1)^2) So if we have our two points (x1,y1) and (x2,y2) then we should be able to find (x2-x1,y2-y1) and find the distance…