---
title: HKWorkoutRouteQuery
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkworkoutroutequery
---

# HKWorkoutRouteQuery

A query to access the location data stored in a workout route.

## Declaration

```swift
class HKWorkoutRouteQuery
```

## Mentioned in

Reading route data

## Overview

Overview Use a workout route query to access the location data associated with an HKWorkoutRoute. 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.

## Topics

### Creating route queries

- [init(route:dataHandler:)](healthkit/hkworkoutroutequery/init(route:datahandler:).md)
- [init(route:dateInterval:dataHandler:)](healthkit/hkworkoutroutequery/init(route:dateinterval:datahandler:).md)

## Relationships

### Inherits From

- [HKQuery](healthkit/hkquery.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Series queries

- [HKQuantitySeriesSampleQueryDescriptor](healthkit/hkquantityseriessamplequerydescriptor.md)
- [HKQuantitySeriesSampleQuery](healthkit/hkquantityseriessamplequery.md)
- [HKWorkoutRouteQueryDescriptor](healthkit/hkworkoutroutequerydescriptor.md)
- [HKHeartbeatSeriesQueryDescriptor](healthkit/hkheartbeatseriesquerydescriptor.md)
- [HKHeartbeatSeriesQuery](healthkit/hkheartbeatseriesquery.md)
- [HKElectrocardiogramQueryDescriptor](healthkit/hkelectrocardiogramquerydescriptor.md)
- [HKElectrocardiogramQuery](healthkit/hkelectrocardiogramquery.md)
- [HKWorkoutEffortRelationship](healthkit/hkworkouteffortrelationship.md)
- [HKWorkoutEffortRelationshipQuery](healthkit/hkworkouteffortrelationshipquery.md)
