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