blob: 1176ed512a4955b8ead986c6629564250ae24f0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
---
title: GeolocationCoordinates.altitude
slug: Web/API/GeolocationCoordinates/altitude
tags:
- API
- 位置情報 API
- GeolocationCoordinates
- プロパティ
- 安全なコンテキスト
- altitude
browser-compat: api.GeolocationCoordinates.altitude
translation_of: Web/API/GeolocationCoordinates/altitude
---
{{securecontext_header}}{{APIRef("Geolocation API")}}
**`GeolocationCoordinates.altitude`** は読み取り専用のプロパティであり、 `double` 値で、その位置の [WGS84](https://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf) 楕円体(公称海面水準を定義するもの)からの高度をメートル単位で表します。この値は、実装がこのデータを提供できない場合は `null` となります。
## 構文
```js
let alt = geolocationCoordinatesInstance.altitude
```
### 値
`double` 値で、その位置の [WGS84](https://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf) 楕円体(公称海面レベルを定義するもの)からの高度をメートル単位で表します。
## 仕様書
{{Specifications}}
## ブラウザーの互換性
{{Compat}}
## 関連情報
- [位置情報 API の使用](/ja/docs/Web/API/Geolocation_API/Using_the_Geolocation_API)
- 所属先の {{domxref("GeolocationCoordinates")}} インターフェイス
- [National
Imagery and Mapping Agency Technical Report 8350.2, Third Edition (WGS84)](https://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf)
|