---
title: GeolocationCoordinates
slug: Web/API/GeolocationCoordinates
tags:
- API
- Coordinates
- Geolocation API
- Interface
- Secure context
translation_of: Web/API/GeolocationCoordinates
---
{{securecontext_header}}{{APIRef("Geolocation API")}}
{{原語併記("GeolocationCoordinates", "座標")}} インターフェイスは地球上におけるデバイスの位置と高度、およびそれぞれの測位精度を表します。
プロパティ
GeolocationCoordinates インターフェイスが継承するプロパティはありません。
- {{domxref("GeolocationCoordinates.latitude")}} {{readonlyInline}} {{securecontext_inline}}
- このオブジェクトが示す緯度を十進度で表す、
double 型の値を返します。
- {{domxref("GeolocationCoordinates.longitude")}} {{readonlyInline}} {{securecontext_inline}}
- このオブジェクトが示す経度を十進度で表す、
double 型の値で返します。
- {{domxref("GeolocationCoordinates.altitude")}} {{readonlyInline}} {{securecontext_inline}}
- このオブジェクトが示す高度 (海面からの距離) をメートル単位で表す、
double 型の値を返します。この情報を取得できない場合は null が返ります。
- {{domxref("GeolocationCoordinates.accuracy")}} {{readonlyInline}} {{securecontext_inline}}
latitude および longitude プロパティの精度をメートル単位で表す、double 型の値を返します。
- {{domxref("GeolocationCoordinates.altitudeAccuracy")}} {{readonlyInline}} {{securecontext_inline}}
altitude プロパティの精度をメートル単位で表す、double 型の値を返します。このプロパティは null になることがあります。
- {{domxref("GeolocationCoordinates.heading")}} {{readonlyInline}} {{securecontext_inline}}
- デバイスの移動方向を真北から何度離れているかで表す、
double 型の値を返します。真北を指す 0 度から時計回りに、東が 90 度、西は 270 度となります。speed プロパティの値が 0 の時、 heading は常に NaN になります。もし heading の情報を取得できない場合は null が返ります。
- {{domxref("GeolocationCoordinates.speed")}} {{readonlyInline}} {{securecontext_inline}}
- デバイスの移動速度をメートル毎秒で表す、
double 型の値を返します。このプロパティは null になることがあります。
メソッド
GeolocationCoordinates インターフェイスが実装・継承するメソッドはありません。
仕様
| 仕様書 |
策定状況 |
コメント |
| {{SpecName('Geolocation', '#coordinates_interface', 'GeolocationCoordinates')}} |
{{Spec2('Geolocation')}} |
初期定義 |
ブラウザー実装状況
{{Compat("api.GeolocationCoordinates")}}
関連情報