I have an HKLiveWorkoutBuilder
to track an outdoor run. I also have a LocationManager
to add locations to the workout with an HKWorkoutRouteBuilder
.
I get HKQuantityTypeIdentifier.distanceWalkingRunning
by the workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didCollectDataOf collectedTypes: Set<HKSampleType>)
delegate method. Can anyone tell me, if these values are only generated by CoreMotion or does Apple also take the CLLocations into account that I added? Since you get this value also without having GPS, I'm not really sure if Apple is taking GPS into acount for calculating the distance.
If not, how can I add the distance calculated by my LocationManager to my workout?