Skip to main content

Training Center XML

Keep activity data with its useful measurements.

TCX describes GPS-backed activities as structured workouts, with laps and measurements such as heart rate, cadence, calories, and elevation. loaders.gl makes the track geometry available alongside that activity context.

loaders.gl support​

TypeAPI
LoaderTCXLoader

The TCX document

An activity model around a GPS track.

Unlike GPX, TCX organizes positions as part of an Activity. This makes room for summaries, laps, sport metadata, and measurements recorded during the effort.

Activities

A workout or recorded session

Laps

Intervals with summaries and totals

Trackpoints

Positions and measurements over time

Metrics

Heart rate, cadence, calories, and more

Detailed guide

TCX format details

The notes below describe TCX as an activity-oriented XML exchange format.

Training Center XML (TCX) is a data exchange format introduced in 2007 as part of Garmin's Training Center product. The XML is similar to GPX since it exchanges GPS tracks, but treats a track as an Activity rather than simply a series of GPS points. TCX provides standards for transferring heart rate, running cadence, bicycle cadence, calories in the detailed track. It also provides summary data in the form of laps.

Characteristics​

CharacteristicValue
File extension.tcx
MIME typeapplication/vnd.garmin.tcx+xml
ContainerXML document
Coordinate reference systemWGS84 longitude/latitude (OGC:CRS84)

Feature matrix​

FeatureSupportOutput
Activities and laps✅ SupportedFeature properties and line geometry
Multiple tracks per lap✅ SupportedMultiLineString geometry
Trackpoint timestamps✅ SupportedCoordinate properties
Elevation✅ SupportedZ coordinates
Heart rate, cadence, speed, and power✅ SupportedCoordinate properties or aligned arrays
Lap summary metrics✅ SupportedTyped feature properties
Arrow, GeoJSON, and object-row tables✅ SupportedArrow is the default
Binary geometry output✅ SupportedSelect tcx.shape: 'binary-geometry'