安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
GeolocationPosition
interface represents the position of the concerned device at a given time. The position, represented by a
GeolocationCoordinates
object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed.
GeolocationPosition
interface
doesn't inherit any properties
.
GeolocationPosition.coords
只读
安全上下文
GeolocationCoordinates
object defining the current location.
GeolocationPosition.timestamp
只读
安全上下文
DOMTimeStamp
representing the time at which the location was retrieved.
GeolocationPosition
interface
neither implements, nor inherits any methods.
| 规范 | 状态 | 注释 |
|---|---|---|
|
地理位置 API
The definition of 'GeolocationPosition' in that specification. |
推荐 | 最初的规范。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
GeolocationPosition
|
Chrome
79
|
Edge
79
|
Firefox
72
|
IE
9
Alternate Name
|
Opera
16
Alternate Name
|
Safari
5
Alternate Name
|
WebView Android
79
|
Chrome Android
79
|
Firefox Android
4
Alternate Name
|
Opera Android
16
Alternate Name
|
Safari iOS
Yes
Alternate Name
|
Samsung Internet Android
12.0
|
coords
|
Chrome 5 | Edge 12 | Firefox 3.5 | IE 9 | Opera 16 | Safari 5 | WebView Android Yes | Chrome Android 18 | Firefox Android 4 | Opera Android 16 | Safari iOS Yes | Samsung Internet Android 1.0 |
| Secure context required | Chrome 47 | Edge ≤18 | Firefox 55 | IE No | Opera Yes | Safari Yes | WebView Android 47 | Chrome Android 47 | Firefox Android 55 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 5.0 |
timestamp
|
Chrome 5 | Edge 12 | Firefox 3.5 | IE 9 | Opera 16 | Safari 5 | WebView Android Yes | Chrome Android 18 | Firefox Android 4 | Opera Android 16 | Safari iOS Yes | Samsung Internet Android 1.0 |
完整支持
不支持
使用非标名称。
GeolocationPosition