How do I access total ascent or total elevation gain? #318
Unanswered
justingshreve
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please point me in the right direction on how to grab total ascent for a workout or run with iOS? I'm using
getAnchoredWorkoutsand the following is returned, butHKElevationAscendedis always null. I also tried using the activity id and grabbinggetWorkoutRouteSamples, but that returns array of locations. I tried to calculate elevation gain by iterating through location array items, but it never matches what is displayed within native iOS app. I'd like to use this value for any relevant activity.Beta Was this translation helpful? Give feedback.
All reactions