Instance Property

altitude

The altitude, measured in meters.

Declaration

var altitude: CLLocationDistance { get }

Discussion

Positive values indicate altitudes above sea level. Negative values indicate altitudes below sea level.

Special Considerations

In iOS, this property is declared as nonatomic. In macOS, it is declared as atomic.

See Also

Getting the Location Attributes

var coordinate: CLLocationCoordinate2D

The geographical coordinate information.

var floor: CLFloor?

The logical floor of the building in which the user is located.

var horizontalAccuracy: CLLocationAccuracy

The radius of uncertainty for the location, measured in meters.

var verticalAccuracy: CLLocationAccuracy

The accuracy of the altitude value, measured in meters.

var timestamp: Date

The time at which this location was determined.