在一组航点中查找行程
从一组路径点(每个路径点都带有纬度/经度和时间戳)中,您如何找出旅行的起点和终点以及随时间停留在某个地方的情况?
我正在使用谷歌纬度数据,不幸的是它只提供了一堆位置,没有元数据。我尝试计算航路点之间的平均速度,但由于纬度的性质,有时位置数据会稍微不准确,看起来我停在某个地方,即使我仍在前往某个地方的旅途中。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想随着时间的推移,在一个地方停留只是程度的问题,不是吗?
给定一堆带有时间戳的纬度/经度对,您可以执行以下操作:
但如果这就是您所拥有的全部,那么这就是你拥有的一切。有些问题您不知道答案:
如果您有一组可能是多次旅行的航路点,我想您可以花一些时间来划分您的旅行(几周的间隙可能意味着单独的旅行)。
否则,最早和最新的点可能是您最好的选择。
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:
But if this is all you have, this is all you have. Some questions you don't know the answer to:
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.