gpt4 book ai didi

html - HTML5 geo API 使用什么测量单位来确定 GPS 精度?

转载 作者:技术小花猫 更新时间:2023-10-29 12:31:29 25 4
gpt4 key购买 nike

我使用 HTML5 的地理定位 API,位置对象有一个“准确度”属性,该属性可能会根据定位的准确度而变化。

到目前为止一切顺利。但是这个值是一个未指定的单位.. 有时是 60,或 1250 甚至 18 000。

我读过 W3C Geolocation API 规范[1],他们讨论了这个属性,但从未提及应该如何解释它。

我唯一找到可能答案的地方是国防部世界大地测量系统 [2] 技术报告。他们提到了以 1σ(标准偏差)为单位的 cm 单位的精度。

但这并没有告诉我 HTML5 地理定位 API 返回给我的准确度单位是多少..我只能假设它以厘米为单位..

[1] http://dev.w3.org/geo/api/spec-source.html

[2] http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf

最佳答案

来自documentation :

The accuracy attribute denotes the accuracy level of the latitude and longitude coordinates. It is specified in meters and must be supported by all implementations. The value of the accuracy attribute must be a non-negative real number.

所以它的度量单位是米。

关于html - HTML5 geo API 使用什么测量单位来确定 GPS 精度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7812117/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com