在一组航点中查找行程

发布于 2024-10-19 03:19:21 字数 169 浏览 3 评论 0原文

从一组路径点(每个路径点都带有纬度/经度和时间戳)中,您如何找出旅行的起点和终点以及随时间停留在某个地方的情况?

我正在使用谷歌纬度数据,不幸的是它只提供了一堆位置,没有元数据。我尝试计算航路点之间的平均速度,但由于纬度的性质,有时位置数据会稍微不准确,看起来我停在某个地方,即使我仍在前往某个地方的旅途中。

From a set of waypoints, each with lat/lon and timestamp, how do you find out the start and end point of a trip vs. staying at a place over time?

I'm playing with Google Latitude data, unfortunately it only provides a stack of locations, no meta data. I tried to calculate the average velocity between waypoints, but because of the nature of Latitude sometimes location data gets slightly inaccurate and it looks like I stopped somewhere even though I was still on a trip to somewhere.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟若柳尘 2024-10-26 03:19:21

我想随着时间的推移,在一个地方停留只是程度的问题,不是吗?

给定一堆带有时间戳的纬度/经度对,您可以执行以下操作:

  • 找出第一个和最后一个点
  • 找出点的访问顺序
  • 找出连续路径点之间的差异

但如果这就是您所拥有的全部,那么这就是你拥有的一切。有些问题您不知道答案:

  • 是否缺少任何航路点?
  • 系统/用户输入的航点是否在一致的时间?
  • 第一个/最后一个点是用户的主要居住地吗?
  • 航点准确吗? (用户是否在某处犯了转录错误?)

如果您有一组可能是多次旅行的航路点,我想您可以花一些时间来划分您的旅行(几周的间隙可能意味着单独的旅行)。

否则,最早和最新的点可能是您最好的选择。

I guess staying at a place over time is just a matter of degree, isn't it?

Given a bunch of lat/long pairs with timestamps, you can do the following:

  • Figure out the first and last points
  • Figure out what order the points were visited in
  • Figure out the difference between successive waypoints

But if this is all you have, this is all you have. Some questions you don't know the answer to:

  • Are any waypoints missing?
  • Are the waypoints entered by the system/user at consistent times?
  • Are the first/last points the user's primary residence?
  • Are the waypoints accurate? (Did the user make a transcription error somewhere?)

If you have a set of waypoints that may be several trips, I suppose you can take some time cutoff to bin your trips (a gap of a few weeks probably means separate trips).

Otherwise, the earliest and latest points are probably your best bets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文