---
title: z
framework: corelocation
role: symbol
role_heading: Instance Property
path: corelocation/clheading/z
---

# z

The geomagnetic data (measured in microteslas) for the z-axis.

## Declaration

```swift
var z: CLHeadingComponentValue { get }
```

## Discussion

Discussion This value represents the z-axis deviation from the magnetic field lines being tracked by the device.

## See Also

### Getting the raw heading data

- [x](corelocation/clheading/x.md)
- [y](corelocation/clheading/y.md)
- [CLHeadingComponentValue](corelocation/clheadingcomponentvalue.md)
