查找下一个现在的位置是知道的纬度/经度/航向/速度 [英] find next postion knowing lat/lon/heading/speed

查看:214
本文介绍了查找下一个现在的位置是知道的纬度/经度/航向/速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

知道 一个数字纬度 十进制经度 速度(公里/小时) 标题 如何找到汽车的下一个位置 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.

这最后一个是个很微妙的,看看这里:<一href="http://www.movable-type.co.uk/scripts/latlong.html">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!

这篇关于查找下一个现在的位置是知道的纬度/经度/航向/速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆