A query to access the location data stored in a workout route.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
Framework
- Health
Kit
Declaration
class HKWorkoutRouteQuery : HKQuery
Overview
Use a workout route query to access the location data associated with an HKWorkout
. Because a route sample can include a large number of CLLocation
objects, the query asynchronously returns the locations in batches. For detailed instructions, see Reading Route Data.