public double GetDistance()
{
if (HasStopovers)
{
return Stopovers.SelectMany(s => s.Legs).Max(l => l.GetDistance());
}
return
Destination1.Profile.Coordinates.ConvertToGeoCoordinate()
.GetDistanceTo(Destination2.Profile.Coordinates.ConvertToGeoCoordinate())/1000;
}