public void SetStartPoint(GpxTrackPoint point) { _latestPointOffset = -1; _earliestPointOffset = -1; _bufferCount = 0; if (_lastPoint != null) { Pauses.Add(new PauseInfo { PauseStart = _lastPoint, PauseEnd = point }); } point.Slope = 0.0D; point.Pace = _lastPace; point.Speed = 3600.0 / _lastPace.TotalSeconds; _lastPoint = point; RecordRoutePoint(point); }
public void AddPause(string description, DateTime startedAt, DateTime endedAt) { Pauses = Pauses ?? new List <Pause>(); Pauses.Add(Pause.New(description, startedAt, endedAt)); }