【发布时间】:2015-03-05 10:38:56
【问题描述】:
我有一个使用 GPS 进行跟踪的 android 应用程序。该应用程序在安装在驾驶室中的安卓设备中运行,以便我可以跟踪驾驶室。我在应用程序上启用了日志记录。最近我在跟踪出租车时发现了一个奇怪的案例。有一次,GPS 给出了一个位置,80 秒后它给出了一个距离第一个位置几公里的位置。令人惊讶的是,在这两种情况下,准确度都
----some logs
26 Dec,05:55:01.645 PM; GPS Fix state = true; NetworkLocation = Fri Dec 26 17:54:02 GMT+05:30 2014 17.805544,83.352301 Accuracy 3139.0; GPS Location = Fri Dec 26 17:54:58 GMT+05:30 2014 17.805017,83.35345 Accuracy 8.0;
----some logs
26 Dec,05:56:34.705 PM; GPS Fix state = true; NetworkLocation = Fri Dec 26 17:55:35 GMT+05:30 2014 17.81825,83.352313 Accuracy 3048.0; GPS Location = Fri Dec 26 17:56:09 GMT+05:30 2014 16.570113,82.055219 Accuracy 14.0;
----some logs
如您所见,网络仍指向初始位置周围的某个位置,而 GPS 指向的位置距离第一个位置较远,但精度仍为 14。!
android的Location类的javadoc说——
* We define accuracy as the radius of 68% confidence. In other
* words, if you draw a circle centered at this location's
* latitude and longitude, and with a radius equal to the accuracy,
* then there is a 68% probability that the true location is inside
* the circle.
这是否意味着,我在第二个跟踪中得到的准确度下降了另外 32%,并且可能是错误的。?我想知道是否有任何可靠的方法来决定是否考虑 gps 位置而不是检查准确性。?
提前致谢
编辑:忘了提到 GPS 定位器在 40 分钟后回到了驾驶室的位置。你可以在这里看到。
26 Dec,06:35:21.851 PM; GPS Fix state = true; NetworkLocation = Fri Dec 26 18:35:20 GMT+05:30 2014 17.800334,83.352941 Accuracy 2887.0 GPS Location = Fri Dec 26 18:35:22 GMT+05:30 2014 17.799875,83.351936 Accuracy 14.0;
更新:今天我查看了运行此应用程序的所有几个设备的日志,并在多个设备中观察到这个错误的 GPS 位置,具有良好的准确度值。所有设备都是同一品牌,使用同一网络提供商的 SIM 卡。
【问题讨论】:
-
出租车司机破解了它,以掩盖从莫里森那里买他/她的个人购物。
-
这是一辆普通的马车:)
标签: android gps geolocation