public virtual void CalculateDistance() { if (TrackPoints.Count == 0) { Distance = null; return; } var points = TrackPoints.Select(p => new PointLatLng(p.Latitude, p.Longitude)); Distance = new MapRoute(points, "").Distance; }
/// <summary> /// Convert the list of points to a list of common coordinates /// </summary> /// <returns></returns> public List <GeoCoordinateExtended> ToCoords() => TrackPoints.Select(pt => pt.ToCoord()).ToList();