Skip to content

xue35/TCX.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

TCX.jl

TCX.jl intends to provide an list of Julia modules to access Training Center XML(TCX) files. This project is inspired by vkurup/python-tcxparser.

Installation

julia> using Pkg; Pkg.add("TCX");

Usage

Basic usage

using TCX

err, tcx = TCX.parse_tcx_file("my_marathon.tcx")
println(getDistance(tcx)) # Static distance record in TCX activity header.
println(getDistance2(tcx)) # Distance calculated out of tackpoints using Geodesty
println(getDuration(tcx))
println(getAverageSpeed(tcx))
println(getAveragePace(tcx))

Load multiple TCX for analysis

using TCX, DataFrames
err, tcxArray = TCX.parse_tcx_dir("/my_running_logs/")
get_DataFrame(tcxArray)

License

MIT License

Contact

Please contact me if any question or comment.

Ref