Our volunteers haven't translated this article into ไทย yet. Join us and help get the job done!
You can also read the article in English (US).

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The Position interface represents the position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed.

Properties

The Position interface doesn't inherit any property.

Position.coords Read only Secure context
Returns a Coordinates object defining the current location.
Position.timestamp Read only Secure context
Returns a DOMTimeStamp representing the time at which the location was retrieved.

Methods

The Position interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
Geolocation API
The definition of 'Position' in that specification.
Recommendation Initial specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support5 Yes3.59165
Secure context required (HTTPS)47 Yes55 No Yes Yes
timestamp5 Yes3.59165
coords5 Yes3.59165
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support518 Yes416 Yes ?
Secure context required (HTTPS)4747 Yes55 Yes Yes ?
timestamp518 Yes416 Yes ?
coords518 Yes416 Yes ?

See also

Document Tags and Contributors

ป้ายกำกับ: 
ผู้มีส่วนร่วมกับหน้านี้: fscholz, jpmedley, chrisdavidmills, abbycar, Sebastianz, teoli
อัปเดตล่าสุดโดย: fscholz,