Coordinates.altitude
Secure context: This feature is available only in secure contexts (en-US) (HTTPS), in some or all supporting browsers.
A propriedade Coordinates.altitude
somente-leitura é uma representação do tipo double da altitude em metros, relativo ao nível do mar. O valor é nulo se a implementação não pode fornecer este dado.
Sintaxe
alt = coordinates.altitude
Especificações
Specification |
---|
Geolocation API # altitude-and-altitudeaccuracy-attributes |
Compatibilidade com navegadores
BCD tables only load in the browser
Veja também
- Using geolocation (en-US)
- The
Coordinates
interface it belongs to.