GeolocationPosition: coords プロパティ
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.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
GeolocationPosition.coords
は読み取り専用のプロパティで、地理的な位置を表す GeolocationCoordinates
オブジェクトを返します。このオブジェクトには、地球上の位置(経度、緯度)、高度、速度が含まれ、グループ化して返されます。また、これらの値に関する精度情報も含まれます。
値
GeolocationCoordinates
のオブジェクトインスタンスです。
仕様書
Specification |
---|
Geolocation # coords-attribute |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
coords |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.