<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutRouteQuery",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKWorkoutRouteQuery"
  },
  "title" : "HKWorkoutRouteQuery"
}
-->

# HKWorkoutRouteQuery

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

```
class HKWorkoutRouteQuery
```

## Overview

Use a workout route query to access the location data associated with an [`HKWorkoutRoute`](/documentation/HealthKit/HKWorkoutRoute). Because a route sample can include a large number of <doc://com.apple.documentation/documentation/CoreLocation/CLLocation> objects, the query asynchronously returns the locations in batches. For detailed instructions, see `Reading Route Data`.

## Topics

### Creating route queries

[`-  initWithRoute:dataHandler:`](/documentation/HealthKit/HKWorkoutRouteQuery/init(route:dataHandler:))

Creates a new query to access the location data associated with a workout route.

[`-  initWithRoute:dateInterval:dataHandler:`](/documentation/HealthKit/HKWorkoutRouteQuery/init(route:dateInterval:dataHandler:))

Creates a new query to access the location data associated with a workout route during the specified date interval.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`HKQuery`](/documentation/HealthKit/HKQuery)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)