/// <summary>
 /// Gets the geo distance in miles between this and another specified located object.
 /// </summary>
 public static double?GetDistance(this IGeoLocated from, IGeoLocated to)
 {
     return(GetDistance(from.Get(l => l.GetLocation()), to.Get(l => l.GetLocation())));
 }
示例#2
0
 /// <summary>
 /// Gets the geo distance in miles between this and another specified located object.
 /// </summary>
 public static double?GetDistance(this IGeoLocated @this, IGeoLocated to) =>
 GetDistance(@this?.GetLocation(), to?.GetLocation());
 /// <summary>
 /// Gets the geo distance in miles between this located object and a specified location.
 /// </summary>
 public static double?GetDistance(this IGeoLocated from, IGeoLocation to) => GetDistance(from.Get(l => l.GetLocation()), to);
 /// <summary>
 /// Gets the geo distance in miles between this location and a specified located object.
 /// </summary>
 public static double?GetDistance(this IGeoLocation from, IGeoLocated to) => GetDistance(from, to.Get(l => l.GetLocation()));
示例#5
0
 /// <summary>
 /// Gets the geo distance in miles between this and another specified located object.
 /// </summary>
 public static double?GetDistance(this IGeoLocated from, IGeoLocated to) =>
 GetDistance(from?.GetLocation(), to?.GetLocation());