View Source GPXEr.Track (GPXEr v0.0.1)

Summary

Functions

If the given gpx document contains multiple tracks or segments this will "flatten" it into a single track.

Calculate the distance, ascent and descent in for each track point.

Functions

break_at(gpx, distance)

break_into_segments_at(gpx, distance)

flatten(gpx)

If the given gpx document contains multiple tracks or segments this will "flatten" it into a single track.

from_enum(enum, base_gpx)

to_enum(gpx)

with_info(enum, func)

Calculate the distance, ascent and descent in for each track point.

Takes a function, which will be pass the Track.Element and the info. All stats are returned as a tuple, with the first element the total value over all tracks, the second the value for the current track and the third the value for the current track segment.