Garmin Splits
AllRidiculousTiger1 week ago
Are Garmin splits available in running activities?
Vanessaadmin1 week ago
Hi Rio,
Garmin splits are available in running activities von each Terra activity payload. Both automatic splits and manually pressed laps come through, and you can tell them apart using the trigger_method field on each lap.
Each lap sample carries:
start_time/end_time(ISO 8601)distance_metersactive_duration_secondsavg_hr_bpmavg_speed_meters_per_secondavg_wattscaloriestrigger_method: one ofMANUAL,DISTANCE,TIME,POSITION_START,POSITION_LAP,POSITION_WAYPOINT,POSITION_MARKED,SESSION_END,FITNESS_EQUIPMENT, orUNSPECIFIED
DISTANCE and TIME are the auto-split triggers (Garmin's auto-lap by distance or time interval, configured on the device). MANUAL is what you get when the athlete presses the lap button. It's common for a single run to contain a mix of both in the same array, so filter on trigger_method if you only want one kind.
The full activity payload shape is shown in the quickstart: https://docs.tryterra.co/unified-api/quickstart. Happy building!