GeolocationCoordinates.altitude
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
GeolocationCoordinates.altitude は読み取り専用のプロパティであり、 double 値で、その位置の WGS84 楕円体(公称海面水準を定義するもの)からの高度をメートル単位で表します。この値は、実装がこのデータを提供できない場合は null となります。
構文
js
let alt = geolocationCoordinatesInstance.altitude
値
double 値で、その位置の WGS84 楕円体(公称海面レベルを定義するもの)からの高度をメートル単位で表します。
仕様書
| Specification |
|---|
| Geolocation API # altitude-and-altitudeaccuracy-attributes |
ブラウザーの互換性
BCD tables only load in the browser