Android 位置“去散步”本身

2023-12-26

我正在研究一个项目的 GPS 部分,我想通过社区获得一些东西。我搜索了所有典型的 GPS“跳跃和漂移”,并努力改进我得到的数据,但上周我得到了一些非常奇怪的数据,我无法确定。

The application basically has a foreground service that tracks the location and then uploads that data on a timer. Of course we have all the proper permissions needed and there is also a filter that weeds out data with really bad accuracy and "detects" stops. All was working well until what you can see here happened. enter image description here These are some of the data points I got. A "beautiful" pattern drawing. The same happens to another location too but not to this extend. I checked the data to find out why my filter didn't even try to make things better and I found out that it would be unable to. All the points have proper speed, heading, and accuracy and for all intents and purposes I could say that the person actually did the whole thing. The problem is that it didn't happen. The phone, (Samsung J5) might not be the best there is out there, was in a room the whole time. From my understanding of the Fused Location Provider there is no speed reported if there is no GPS involved in the process. And lets assume that where the phone was sitting it could actually get a GPS signal. I can see it jumping around but going for a walk around the neighborhood?

我知道并理解 Android(以及任何其他平台)中的位置可能是一个非常复杂的问题,由许多不同的变量组成,这些变量主要从提供这些变量的硬件开始,但是我们如何解释这种突然涌入的疯狂,即使看似对吧,数据?我们是否可以认为长时间保持定位服务正常运行实际上会使系统陷入困境或“疲劳”?到目前为止已提供正常数据的同一设备如何突然提供此数据集?

添加到问题中。数据中还存在一两次大约 2 分钟的长延迟(间隔设置为 15 秒和 10 秒(最快))。我 100% 确定该服务没有重新启动或类似的情况,因为我正在为此进行记录。

任何类型的见解都将不胜感激,如果有任何方式/方法/算法您可以建议研究“修复”这种行为,那就太好了。预先感谢您,并对这个长问题表示歉意。我需要提供适当的背景。

EDIT:这并不是我的问题的真正答案,为什么会突然出现这种行为,所以我将其添加到此处作为尝试缓解问题的方法,至少是缓解一点问题。我决定使用 Google 的 ActivityRecognitionAPI(捆绑在位置 API 中,因此不需要更多依赖项)并将其输出与我现有的过滤器合并,以期“修复”“错误”位置数据。

不过,如果有人仍然可以给我一个很好的答案(帮助我理解)是否存在运行时间长或其他硬件(或软件)因素(不包括手机上的 GPS 芯片损坏的典型知识)等因素引起像上面提到的那样奇怪和意想不到的行为将不胜感激。

(当然,我们总是可以说 - “这是手机故障” - 然后就可以了;))


GPS 存在误差,因此即使您站在同一点,也会得到不同的读数。您可以执行以下几项操作:

  1. 使用 GPS 的精度值 - 如果新读数与前一个读数之间的距离低于精度 - 忽略它。
  2. 使用设备的加速计来确定它是否在移动。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android 位置“去散步”本身 的相关文章

随机推荐

  • 如何在xsd文件中定义xml主键并在xml文件中验证

    建筑物 xsd
  • 在 Android 的警报管理器中使用 Intent Extras 传递值

    我想知道这段代码是否有效 我现在无法尝试 此外 我还有一些疑问需要澄清 Intent intent new Intent context AlarmReceiver class intent putExtra user global get
  • 如何从R中的数据帧创建不同格式的矩阵?

    我的数据框如下 group id user id 1000 26 1236 29 1236 46 3767 26 3767 46 5614 29 5614 45 5614 46 我需要输出如下 User 1 User 2 of common
  • 将图像从 3d 视角重绘为 2d

    我需要用 Pascal Delphi Lazarus 编写的逆透视变换 请参见下图 我想我需要遍历目标像素 然后计算源图像中的相应位置 以避免舍入误差等问题 function redraw 3d to 2d sourcebitmap tbi
  • WPF C# 按钮样式

    有人知道如何在 WPF 中重新创建此按钮样式吗 因为我不知道如何制作不同的隔间 以及两种不同的文本和文本样式 要解决你的问题肯定需要使用Style and Template为了Button 但他到底长什么样呢 决定可能有几个 例如 Butt
  • 在 SQLPlus 中设置查询输出的格式

    我目前正在使用 SQLPlus 每当我查询数据库时 结果都是一团糟 换句话说 它很难读 我想知道是否有人知道如何在 Unix 服务器上运行的 SQLPlus 中格式化查询的输出 列 表等 但是 我正在从 Windows 访问服务器 而且 谁
  • 使用 wicked_pdf gem 和 wkhtmltopdf 在 PDF 上显示图像标题

    我的控制器 def show respond to do format format pdf do render pdf gt show template gt welcome show footer gt right gt Page pa
  • 在迭代期间查找文件中的位置

    我正在尝试使用f tell 在迭代期间的普通文本文件中 with open test txt as f for line in f print f tell 我收到以下错误 Traceback most recent call last F
  • 删除工具栏和选项卡布局之间的空间间隙

    我在一个片段中有一个带有 TabLayout 的 AppBarLayout 该片段位于具有工具栏的 Activity 中 但是toolbar和TabLayout之间出现了一个空格 我不知道它来自哪里 片段包 xml
  • Java 关闭钩子

    我已将以下代码添加到我的程序中 Runtime getRuntime addShutdownHook new Thread new Runnable Override public void run System out println e
  • 如何使用钩子更改子组件的道具?

    我想使用反应钩子更改道具 并且我找到了将 setState 函数作为道具传递给孩子的方法 容器 tsx const Container React FC gt const num setNum useState 0 return
  • Seaborn 条形图中的垂直线代表什么?

    我正在尝试使用 Seaborn 因子图tutorial http stanford edu mwaskom software seaborn tutorial categorical linear models html 以下代码创建一个带
  • 通过catch(...)从SEH异常中获取有意义的信息?

    早上好 编辑 这不是重复的 因为它具体涉及 SEH 而不是代码级引发的异常 我正在使用 SEH 来捕获一些不可靠的库引发的硬件错误 我想从包罗万象的异常中获取更多信息 下面的代码模拟了我正在做的事情 正如你所看到的 我正在使用 boost
  • 使用 Tridion Query 实施全文搜索

    我必须对基于 SDL Tridion WCMS 的网站实施全文搜索 对于如何使用 Tridion Query 实现全文搜索有什么建议或想法吗 SDL Tridion Content Delivery API 设计用于基于系统或自定义元数据和
  • DotLiquid/Liquid 访问字典

    我在用点液体 http github com formosatek dotliquid 模板引擎并尝试访问模板中的字典值 我已经将这个下降传递给模板 public class SomeDrop Drop public Dictionary
  • 当通过 QueryString 设置区域性时,本地化有效,但当区域性在路由中时则无效

    这是我的路线 app UseMvc routes gt routes MapRoute name defaultWithCulture template culture fa IR controller action Index id 但当
  • java.lang.IllegalArgumentException:服务未注册

    我有一个包含 webview 的应用程序 一切都很顺利 但在 android studio 的运行选项卡中 我收到以下消息 我的应用程序仍然运行良好 但它仍然困扰着我 我对这条消息了解不多 Exception thrown while un
  • PHP cURL 不存储会话 cookie...如何解决这个问题?

    我正在制作一个类来与我们公司的 API 进行通信 我使用curl 来发布数据并检索json 格式的响应 在代码的最后一部分 课后 我将用户登录到服务器 它给出了 true 但是当我尝试使用curl再次连接时 他说我没有登录 我已经完成了谷歌
  • 如何在路线更改时关闭导航菜单

    With react router dom 如何检测用户何时导航到新页面 我目前正在使用 react router dom 4 2 2 and react 15 6 1 我想在用户选择新的目标 URL 时关闭移动导航菜单 但我无法检测路线何
  • Android 位置“去散步”本身

    我正在研究一个项目的 GPS 部分 我想通过社区获得一些东西 我搜索了所有典型的 GPS 跳跃和漂移 并努力改进我得到的数据 但上周我得到了一些非常奇怪的数据 我无法确定 The application basically has a fo