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

标签 html geolocation geo

我使用 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/

相关文章:

javascript - CSS 定位 : wrapping text inside a modal

mysql - 如何根据地址与特定地址的距离来过滤地址数据库的结果?

java - 从三个 Android 位置提供者给出最佳位置估计的方法

r - Leaflet map 'Error in polygonData.default(data) : Don'不知道如何从类data.frame的对象获取路径数据

javascript - td 内的 HTML CSS 对齐

javascript - 停止我的网站在智能手机上的自动旋转

python - BeautifulSoup 在解析后返回间隔文本

javascript - 各种浏览器中的 HTML5 地理定位 API

geolocation - 安全(通过 https)IP 地址查找 API 服务

mysql - Geo SQL 查找位置附近的点