public static GeoDistance BetweenPoints(IEnumerable <IGeoPoint> points, bool includeElevation = false) { double m = 0; var a = points.First(); foreach (var b in points) { if (a != b) // skip first { m += GeoDistance.DistanceMeters(a, b, includeElevation); a = b; // go next } } return(GeoDistance.FromMeters(m)); }
public static GeoDistance BetweenPoints(IGeoPoint a, IGeoPoint b, bool includeElevation = false) { var m = GeoDistance.DistanceMeters(a, b, includeElevation); return(GeoDistance.FromMeters(m)); }
public static GeoDistance BetweenPoints(IGeoLatLon a, IGeoLatLon b) { var m = GeoDistance.DistanceMeters(a, b); return(GeoDistance.FromMeters(m)); }