buildGpxFromRecords
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / utils/files/export/gpxExport / buildGpxFromRecords
Function: buildGpxFromRecords()
buildGpxFromRecords(
records: readonlyFitRouteRecord[] |null|undefined,options?:GpxBuildOptions):string|null
Defined in: utils/files/export/gpxExport.ts:72
Builds a GPX 1.1 document string from FIT record messages. The generated markup includes metadata, track segments, and optional extensions for heart rate, cadence, temperature, and power when available. When no valid coordinates exist the function returns null, allowing callers to surface user-friendly notifications.
Parametersβ
recordsβ
readonly FitRouteRecord[] | null | undefined
options?β
GpxBuildOptions = {}
Returnsβ
string | null