Search code examples
latitude-longitudehaversinegreat-circle

Which one is the best for small distance like 10 meters Haversine or Law of Cosines?


I am Using Haversine Formula to find the great circle distance in my work But I want to know The most Exact formula for small distance like 10 meters only


Solution

  • Continue using the haversine formula. The [spherical] law of cosines formula is known to be inaccurate at short distances. See https://en.wikipedia.org/wiki/Great-circle_distance ... also this SO question: MySQL WordPress Query Returning a Distance of Zero for Some Records