--- title: GeolocationCoordinates slug: Web/API/GeolocationCoordinates tags: - API - Geolocation API - GeolocationCoordinates - 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")}}

関連情報