Re:Haversine Formula
by shittyadmin on Saturday April 13, 2019 @07:04PM
(#19656325)
If you need a library to do this, check out GeographicLib. It's written by C. F. F. Karney the same guy who developed an algorithm and wrote a scientific paper about improving Vincenty's formulae for performance and fixing issues at nearly antipodal points.
It has good implementations in C++, C# and Javascript.
Re:Haversine Formula
by damian2000 on Sunday April 14, 2019 @07:25AM
(#19658742)
Minor point but I know c# has a GeoCoordinate class into the framework Dlls. It also contains methods to calculate distance between points. Many .net Devs I've worked with didn't know about it. I think it came out first in .net 4.0.
Also, another reference for both methods with calculators! Vicenty: http://www.movable-type.co.uk/scripts/latlong-vincenty.html Haversine: http://www.movable-type.co.uk/scripts/latlong.html