【问题标题】:What defines coords.accuracy in the Geolocation API when not using a positioning sensor?不使用定位传感器时,Geolocation API 中的 coords.accuracy 定义是什么?
【发布时间】:2012-01-23 15:46:16
【问题描述】:

我正在用 HTML5 尝试Geolocation API,结果似乎比报告的结果更多accurate

  • geolocation.coords.latitude 显示~正确的纬度
  • geolocation.coords.longitude 显示~正确的经度
  • geolocation.address.street + geolocation.address.streetNumber 甚至显示正确的地址。

但是,geolocation.coords.accuracy 返回 18000(米),尽管结果要准确 1000 倍。

我没有使用任何真正的定位传感器,例如 GPS,目前正在桌面浏览器上测试 API。我相信如果板载定位传感器,精度值将是定位传感器报告的值。但是——没有定位传感器时,定位精度是由什么定义的?这仅仅是浏览器的幸运猜测吗? (“确定总比后悔好?”)

是否有我可以研究的规范或草稿?

【问题讨论】:

标签: html browser geolocation desktop-application


【解决方案1】:

我认为当你只提交一个 wifi_tower 来阻止滥用时,他们会给你 18,000。当您给它一个列表时,它会返回较小的值,例如 90。因此,仅知道一个 AP 是不够的,您必须了解环境。

用户代理也可能与它有关。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-01-26
    • 1970-01-01
    • 2011-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多