/// <summary>
        /// Calculate the speed from a previous point
        /// </summary>
        /// <param name="previous"></param>
        public void CalculateSpeed(GeoCoordinateExtended previous)
        {
            Double distance = this.GetDistanceTo(previous);
            Double seconds  = ((TimeSpan)(this.Time - previous.Time)).TotalSeconds;

            this.Speed = distance / seconds;
        }
 public static GPXWaypoint FromCoord(GeoCoordinateExtended coord)
 {
     return(new GPXWaypoint()
     {
         CreatedDateTime = coord.Time,
         Height = (decimal)coord.Altitude,
         Latitude = (decimal)coord.Latitude,
         Longitude = (decimal)coord.Longitude
     });
 }