GeolocationPosition

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

* Some parts of this feature may have varying levels of support.

安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。

GeolocationPosition インターフェイスは対象のデバイスのある時間における現在位置を表します。GeolocationCoordinates オブジェクトで表される位置情報には、地球を表す楕円体上における平面座標のほかに、高度や速度といった情報も含まれます。

インスタンスプロパティ

GeolocationPosition インターフェイスが継承するプロパティはありません。

GeolocationPosition.coords 読取専用 安全なコンテキスト用

現在位置を示す GeolocationCoordinates オブジェクトを返します。

GeolocationPosition.timestamp 読取専用 安全なコンテキスト用

位置情報が取得された時刻を表すタイムスタンプを、ミリ秒単位の Unix 時刻で返します。

インスタンスメソッド

GeolocationPosition インターフェイスが実装・継承するメソッドはありません。

仕様書

Specification
Geolocation
# position_interface

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
GeolocationPosition
coords
Secure context required
timestamp
toJSON

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Uses a non-standard name.
Has more compatibility info.

関連情報