public static double GetDistance(this Location source, double latitude, double longitude) { if (source == null) { throw new ArgumentNullException("source"); } return(LocationUtility.GetDistance(source.Latitude, source.Longitude, latitude, longitude)); }
public static double GetDistance(this Location source, Location target) { if (source == null) { throw new ArgumentNullException("source"); } if (target == null) { throw new ArgumentNullException("target"); } return(LocationUtility.GetDistance(source, target)); }