Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2020 г..
* Some parts of this feature may have varying levels of support.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Интерфейс GeolocationPosition представляет положение соответствующего устройства в данный момент времени. Положение, представленное объектом GeolocationCoordinates, отражает двумерное положение устройства на сфероиде, представляющем землю, а также его высоту и скорость..
Интерфейс GeolocationPosition не наследует свойства.
GeolocationPosition.coords Только для чтения Secure contextВозвращает объект GeolocationCoordinates определяющий текущую локацию.
GeolocationPosition.timestamp Только для чтения Secure contextВозвращает DOMTimeStamp, представляющий время, в которое была получена локация.
Интерфейс GeolocationPosition не имеет и не наследует методы.
| Geolocation # position_interface |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 17 дек. 2024 г. by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.