How would you guys recommend I try to identify runs that are workouts from the SummaryActivity object?
For context: I have a group of athletes who've authenticated my app whose activities I poll to a Google Sheet via the Google App Script and I want to be able to identify their workouts.
I have a few options in my head:
1. Ask that my athletes mark their workouts as workouts in Strava, from which I should be able to grab the workout_type and use that (?). I still can't find any place which shows what the valid workout types are. Risk assuming this is even valid: They could forget to mark their run as a workout and then that activity gets overlooked.
2. Try to use the laps data. Assumptions: All athletes will use lapping for their workouts and never use lapping for their easy runs. Womp womp.
3. Try for a combination of the above two fields: workout_type and laps. From this make a decision on if it's a workout or not. If they forget to mark a workout type, check laps and see if there are fast laps much faster than their easy run pace (or something like that). If laps look all slow / there's only one, mark it as an easy run.
4. Cry. Strava API has too many limitations. Forget about my dreams and call it a wrap.
Hint: This is me begging for you Strava API developers to enhance the API to address its limitations such as this. 🙂 Any help would be appreciated.