Contents

altitude

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

Declaration

var altitude: CLLocationDistance { get }

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.

See Also

Getting the location attributes