Skip to content
/ OpenTcx Public

Garmin Tcx file Analyzor and Generator for .Net

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.md
MIT
COPYING
Notifications You must be signed in to change notification settings

yahch/OpenTcx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTcx

Used for analyze and generate Garmin tcx file.

Platforms

✅ .NET Framework 3.5
✅ .NET Framework 4.0
✅ .NET Framework 4.5
✅ .NET Framework 4.8
✅ .NET Standard 2.0

Useage
PM> Install-Package OpenTcx -Version 1.0.0
Sample
using System;

namespace OpenTcx.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var tcx = new OpenTcx.Tcx();
            var data = tcx.AnalyzeTcxFile(@"C:\Users\zhix\Desktop\2017-06-05-07-23-04.tcx");
            if (data == null) return;
            Console.WriteLine("Sports Activity Count:" + data.Activities.Activity.Length);
            if (data.Activities.Activity.Length < 1) return;
            var activity0 = data.Activities.Activity[0];
            Console.WriteLine("ID:" + activity0.Id);
            Console.WriteLine("Sport:" + activity0.Sport);
            Console.WriteLine("Sport:" + activity0.Sport);
            Console.WriteLine("Laps:" + data.Activities.Activity[0].Lap.Length);
            Console.WriteLine("GPS Tracks:" + data.Activities.Activity[0].Lap[0].Track.Length);
        }
    }
}

About

Garmin Tcx file Analyzor and Generator for .Net

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.md
MIT
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages