GeolocationPosition
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年7月.
{"* "}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> |
ブラウザーの互換性
Loading…