Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 /// <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();