Example #1
0
 public static double DistanceTo(this GeoLocation from, GeoLocation to, GeoMath.MeasureUnits units,
                                 int decimalPoints = 2)
 {
     return(from.DistanceTo(to.Latitude, to.Longitude, units, decimalPoints));
 }
Example #2
0
 public static double DistanceTo(this GeoLocation from, double latitude, double longitude, GeoMath.MeasureUnits units,
                                 int decimalPoints = 2)
 {
     return(GeoMath.Distance(from, GeoLocation.TryCreate(latitude, longitude), units, decimalPoints));
 }