[The Location API object model is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, to access location from a website, use the W3C Geolocation API. To access location from a desktop application, use the Windows.Devices.Geolocation API.]
Current altitude, in meters. Altitude is relative to the reference ellipsoid.
This property is read-only.
This property is a read-only Number (double precision floating point).
Location sensors are not required to provide this property. You should handle exceptions when attempting to access this property.
The Altitude method retrieves the altitude relative to the reference ellipsoid that is defined by the latest revision of the World Geodetic System (WGS 84), rather than the altitude relative to sea level.
For an example of how to use this property, see A Simple LatLong Report Example.
Minimum supported client
|Windows 7 [desktop apps only]|
Minimum supported server