---
title: altitude
framework: corelocation
role: symbol
role_heading: Instance Property
path: corelocation/cllocation/altitude
---

# altitude

The altitude above mean sea level associated with a location, measured in meters.

## Declaration

```swift
var altitude: CLLocationDistance { get }
```

## Discussion

Discussion The altitude property represents an orthometric height, which is the height above the approximate mean sea level. Positive values indicate altitudes above mean sea level. Negative values indicate altitudes below mean sea level. When verticalAccuracy contains 0 or a negative number, the value of altitude is invalid. The value of altitude is valid when verticalAccuracy contains a postive number. In most cases, Core Location approximates mean sea level using the Earth Gravitational Model 2008 (EGM 2008) geoid associated with the World Geodetic System 1984 (WGS84) standard. In some rare cases, Core Location approximates mean sea level using the DMA 10x10 geoid grid. The discrepancy between these two geoids is typically less than 5 meters. See ellipsoidalAltitude if your application uses an altitude with respect to the WGS84 reference frame. note: In iOS, this property is declared as nonatomic. In macOS, it is declared as atomic.

## See Also

### Getting the location attributes

- [coordinate](corelocation/cllocation/coordinate.md)
- [ellipsoidalAltitude](corelocation/cllocation/ellipsoidalaltitude.md)
- [CLLocationDistance](corelocation/cllocationdistance.md)
- [floor](corelocation/cllocation/floor.md)
- [timestamp](corelocation/cllocation/timestamp.md)
- [sourceInformation](corelocation/cllocation/sourceinformation.md)
