---
title: distanceWalkingRunning
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/distancewalkingrunning
---

# distanceWalkingRunning

A quantity sample type that measures the distance the user has moved by walking or running.

## Declaration

```swift
static let distanceWalkingRunning: HKQuantityTypeIdentifier
```

## Mentioned in

Accessing condensed workout samples Dividing a HealthKit workout into activities Running workout sessions

## Discussion

Discussion These samples use length units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle). The system automatically records distance samples on iPhone and Apple Watch. Sample data may be condensed and/or coalesced by HealthKit. For more information, see Accessing condensed workout samples.

## See Also

### Related Documentation

- [HKQuantityTypeIdentifier](healthkit/hkquantitytypeidentifier.md)
- [HKQuantitySample](healthkit/hkquantitysample.md)
- [HKQuantity](healthkit/hkquantity.md)

### Activity

- [stepCount](healthkit/hkquantitytypeidentifier/stepcount.md)
- [runningSpeed](healthkit/hkquantitytypeidentifier/runningspeed.md)
- [runningStrideLength](healthkit/hkquantitytypeidentifier/runningstridelength.md)
- [runningPower](healthkit/hkquantitytypeidentifier/runningpower.md)
- [runningGroundContactTime](healthkit/hkquantitytypeidentifier/runninggroundcontacttime.md)
- [runningVerticalOscillation](healthkit/hkquantitytypeidentifier/runningverticaloscillation.md)
- [distanceCycling](healthkit/hkquantitytypeidentifier/distancecycling.md)
- [pushCount](healthkit/hkquantitytypeidentifier/pushcount.md)
- [distanceWheelchair](healthkit/hkquantitytypeidentifier/distancewheelchair.md)
- [swimmingStrokeCount](healthkit/hkquantitytypeidentifier/swimmingstrokecount.md)
- [distanceSwimming](healthkit/hkquantitytypeidentifier/distanceswimming.md)
- [distanceDownhillSnowSports](healthkit/hkquantitytypeidentifier/distancedownhillsnowsports.md)
- [basalEnergyBurned](healthkit/hkquantitytypeidentifier/basalenergyburned.md)
- [activeEnergyBurned](healthkit/hkquantitytypeidentifier/activeenergyburned.md)
- [flightsClimbed](healthkit/hkquantitytypeidentifier/flightsclimbed.md)
