---
title: HKMetadataKeyIndoorBikeDistance
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyindoorbikedistance
---

# HKMetadataKeyIndoorBikeDistance

The workout distance displayed by a connected GymKit exercise bike.

## Declaration

```swift
let HKMetadataKeyIndoorBikeDistance: String
```

## Discussion

Discussion Set this key on a workout sample representing exercise on a GymKit exercise bike. Set its value to an HKQuantity object with a length unit.

## See Also

### GymKit Fitness Equipment

- [HKMetadataKeyFitnessMachineDuration](healthkit/hkmetadatakeyfitnessmachineduration.md)
- [HKMetadataKeyCrossTrainerDistance](healthkit/hkmetadatakeycrosstrainerdistance.md)
