查找下一个现在的位置是知道的纬度/经度/航向/速度经度、航向、纬度、速度

2023-09-11 02:39:40 作者:卖钉子的小男孩#

知道 一个数字纬度 十进制经度 速度(公里/小时) 标题 如何找到汽车的下一个位置 60秒后? 是否有任何的算法来做到这一点?

knowing a decimal latitude, decimal longitude, speed (km/h), heading how to find the next position of a car after 60 seconds? is there any algorithm to do that?

推荐答案

这可能会帮助:

distance_traveled = speed * time

然后,计算x和速度的使用航向角(三角函数)y分量:

Then, calculate x and y components of speed using heading as angle (trigonometry):

speed_x=distance_traveled * Math.Cos(heading/180*Math.PI)
speed_y=distance_traveled * Math.Sin(heading/180*Math.PI)

接下来,看看如何纬度/经度映射成某种形式的x / y坐标,加speed_x和speed_y,并转换为纬度/长了。

Next, see how to map lat/long into some form of x/y coordinates, add speed_x and speed_y, and convert to lat/long again.

这最后一个是个很微妙的,看看这里:http://www.movable-type.co.uk/scripts/latlong.html

This last one is a tricky one, look here: http://www.movable-type.co.uk/scripts/latlong.html

其实,你会发现在这篇文章的一切!

In fact, you'll find everything within that article!