public HaversineDistanceEvaluator(IList <GeographicPosition> nodes) { _nodes = nodes; _haversine = new Haversine(); }
public void SetUp() { _subject = Haversine.Calculate(50, 25, 55, 30); }
public double CalculateDistanceInMiles(double lat1, double lon1, double lat2, double lon2) { return(Haversine.Distance(lat1, lon1, lat2, lon2)); }