Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The Coordinates.altitude
read-only property is a double
representing the altitude of the position in meters, relative to sea level. This value is null
if the implementation cannot provide this data.
Syntax
alt = coordinates.altitude
Specifications
Specification | Status | Comment |
---|---|---|
Geolocation API The definition of 'Coordinates.altitude' in that specification. |
Recommendation | Initial definition |
Browser compatibility
See also
- Using geolocation
- The
Coordinates
interface it belongs to.