/// <summary> /// By Geographical distance http://en.wikipedia.org/wiki/Geographical_distance /// </summary> public static double GeoDistanceTo(this CoordinateModel origin, [NotNull] CoordinateModel destination, [NotNull] UnitOfLengthModel unitOfLength) { return(DistanceHelper.GetDistanceByGeo(origin, destination, unitOfLength)); }
/// <summary> /// Distance to Destination Coordinate in Flat (2D) Map /// </summary> /// <param name="origin"> </param> /// <param name="destination"></param> /// <returns> Miles </returns> public static double FlatDistanceTo(this CoordinateModel origin, [NotNull] CoordinateModel destination) { return(DistanceHelper.GetDistanceByFlat(origin, destination)); }