public double DistanceInMetersTo(Node other) => SharedFunctions .GetDistanceFromLatLonInMeters( Latitude.GetValueOrDefault(), Longitude.GetValueOrDefault(), other.Latitude.GetValueOrDefault(), other.Longitude.GetValueOrDefault() );
public override string ToString() { if (!Latitude.HasValue || !Longitude.HasValue) { return(null); } return(Latitude.GetValueOrDefault().ToString("#0.0#######") + "," + Longitude.GetValueOrDefault().ToString("#0.0#######")); }
public override string ToString() { if (!Latitude.HasValue || !Longitude.HasValue) { return(null); } return(Latitude.GetValueOrDefault().ToString("#0.0#######", CultureInfo.InvariantCulture) + "," + Longitude.GetValueOrDefault().ToString("#0.0#######", CultureInfo.InvariantCulture)); }
public override string ToString() { return($"{Latitude.GetValueOrDefault(0)},{Longitude.GetValueOrDefault(0)}"); }