Skip to contents

Internal function to parse activity files from Strava export data. Supports FIT, TCX, and GPX formats (including .gz compressed files).

Usage

parse_activity_file(file_path, export_dir = NULL)

Arguments

file_path

Path to the activity file (can be .fit, .tcx, .gpx, or .gz compressed)

export_dir

Base directory of the Strava export (for resolving relative paths)

Value

A data frame with columns: time, latitude, longitude, elevation, heart_rate, power, cadence, speed (all optional depending on file content)