This module provides the JourneyCharts and HTMLGenerator modules with statistics for the charts, and the journey statistics

- ptsElevation :: [WptType] -> [(LocalTime, Double)]
- avrSpeedOverTime :: [(LocalTime, Speed)] -> Double -> Double -> [(LocalTime, Speed)] -> [(LocalTime, Speed)]
- speedAtPoints :: [WptType] -> [(LocalTime, Speed)]
- speedAtPoints' :: WptType -> [WptType] -> [(LocalTime, Speed)]
- accumDistance :: [WptType] -> Double -> [(LocalTime, Distance)]
- findPoint :: [WptType] -> WptType -> (WptType -> Maybe Double) -> (Double -> Double -> Bool) -> Maybe (LocalTime, Double)
- journeyDistance :: (Lat a, Lon a) => [a] -> Distance
- meanJourneySpeed :: (Lat a, Lon a, Time a) => [a] -> Distance
- maxSpeed :: [WptType] -> Speed
- meanElevation :: Ele a => [a] -> Double
- journeyTime :: Time a => [a] -> NominalDiffTime
- dateOfJourney :: Time a => [a] -> Maybe Day
- lclTime :: DateTime -> LocalTime
- dfltTZ :: TimeZone

# Documentation

ptsElevation :: [WptType] -> [(LocalTime, Double)]Source

Takes all WayPoints, and creates a list of tuples containing (TimeStamp,Elevation)

avrSpeedOverTime :: [(LocalTime, Speed)] -> Double -> Double -> [(LocalTime, Speed)] -> [(LocalTime, Speed)]Source

Takes all WayPoints, and creates a list of tuples containing (TimeStamp,AvrSpeedAtThisPoint)

speedAtPoints :: [WptType] -> [(LocalTime, Speed)]Source

Takes all WayPoints, and creates a list of tuples containing (TimeStamp,SpeedAtThisPoint)

accumDistance :: [WptType] -> Double -> [(LocalTime, Distance)]Source

Takes all WayPoints, and creates a list of tuples containing (TimeStamp,JourneyDistanceAtPoint)

findPoint :: [WptType] -> WptType -> (WptType -> Maybe Double) -> (Double -> Double -> Bool) -> Maybe (LocalTime, Double)Source

Takes all WayPoints, an element in wptType, and an Eq function, returning a single WayPoint

journeyDistance :: (Lat a, Lon a) => [a] -> DistanceSource

Calculates the total journey distance

meanJourneySpeed :: (Lat a, Lon a, Time a) => [a] -> DistanceSource

Calculates the average speed of the journey

meanElevation :: Ele a => [a] -> DoubleSource

Calculates the average elevation throughout the journey

journeyTime :: Time a => [a] -> NominalDiffTimeSource

Calculates the total journey time

dateOfJourney :: Time a => [a] -> Maybe DaySource

Extracts the date of the journey (from the first WayPoint)