/// <summary>
        /// <para>Convert Activity to a list of GoogleMap.MapPoint</para>
        /// </summary>
        /// <returns>
        /// <para>List of GoogleMap.MapPoint representing the activity.</para>
        /// </returns>
        public List<FickleFrostbite.GoogleMap.MapPoint> ToMapPoints()
        {
            var mapPoints = new List<FickleFrostbite.GoogleMap.MapPoint>();

            foreach (var lap in this.Laps)
            {
                foreach (var track in lap.Track)
                {
                    if (track.Position != null)
                    {
                        var mapPoint = new FickleFrostbite.GoogleMap.MapPoint(track.Position.LatitudeDegrees, track.Position.LongitudeDegrees);
                        mapPoints.Add(mapPoint);
                    }
                }
            }

            return mapPoints;
        }
예제 #2
0
        /// <summary>
        /// <para>Convert Activity to a list of GoogleMap.MapPoint</para>
        /// </summary>
        /// <returns>
        /// <para>List of GoogleMap.MapPoint representing the activity.</para>
        /// </returns>
        public List <FickleFrostbite.GoogleMap.MapPoint> ToMapPoints()
        {
            var mapPoints = new List <FickleFrostbite.GoogleMap.MapPoint>();

            foreach (var lap in this.Laps)
            {
                foreach (var track in lap.Track)
                {
                    if (track.Position != null)
                    {
                        var mapPoint = new FickleFrostbite.GoogleMap.MapPoint(track.Position.LatitudeDegrees, track.Position.LongitudeDegrees);
                        mapPoints.Add(mapPoint);
                    }
                }
            }

            return(mapPoints);
        }