<!--
{
  "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

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

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

[`init(route: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.



---

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)