|
|
Calculate distance and bearing between two Latitude/Longitude points |
|
Note: Since the earth is not quite a sphere, there are small errors in using spherical geometry; the earth is actually roughly ellipsoidal (or more precisely, oblate spheroidal) with a radius varying between about 6,378km (equatorial) and 6,357km (polar), and local radius of curvature varying from 6,336km (equatorial meridian) to 6,399km (polar). This means that errors from assuming spherical geometry might be up to 0.55% crossing the equator, though generally below 0.3%, depending on latitude and direction of travel. An accuracy of better than 3m in 1km is good enough for me, but if you want greater accuracy, you could refine the result by using the local radius of curvature, as explained in the US Census Bureau. © 2002-2006 Chris Veness |
|