Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 GPS 跟踪应用程序,它偶尔(比如每月一次)会返回一堆狂野/无效的修复。有处理这种情况的策略吗?
您可以getAccuracy()检查并查看您的 GPS 定位有多精确,并丢弃任何不适合的东西。100m对于户外应用来说是一个很好的门槛。
getAccuracy()