<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKMetadataKeyHeartRateSensorLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyHeartRateSensorLocation"
  },
  "title" : "HKMetadataKeyHeartRateSensorLocation"
}
-->

# HKMetadataKeyHeartRateSensorLocation

The location where a specific heart rate reading was taken.

```
let HKMetadataKeyHeartRateSensorLocation: String
```

## Discussion

This key takes an <doc://com.apple.documentation/documentation/Foundation/NSNumber> containing an [`HKHeartRateSensorLocation`](/documentation/HealthKit/HKHeartRateSensorLocation) as its value.

## Topics

### Valid Locations

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

Constants that indicate where on the body the heart rate sensor is located.



---

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)