简体   繁体   English

如何像导航系统一样从A点绘制到B点

[英]How to draw from point A to point B like in navigation systems

It's going to be a very generic question. 这将是一个非常普通的问题。

By the way, I am trying to replicate this : 顺便说一句,我正在尝试复制此: 图片

I created a web page that displays the lat/long information for whoever. 我创建了一个网页,显示任何人的经/纬度信息。 It refreshes itself every X second. 每隔X秒刷新一次。

I open my android, navigate to my web page, put the phone somewhere in the car and start driving. 我打开我的Android设备,导航到我的网页,将手机放在汽车中的某个位置,然后开始驾驶。 The idea is to capture my entry/exit lines to see how good/bad my approach to an apex is. 这个想法是捕获我的进入/退出行,以查看我对顶点的处理方式的优缺点。

I guess I need to understand how typical in car navigation systems work. 我想我需要了解汽车导航系统中的典型工作方式。 They track you to the point. 他们会跟踪您的意思。 Any ideas? 有任何想法吗?

I don't think GPS is going to be accurate enough for this. 我认为GPS对此不够准确。

Assuming you have a good fix on 5 or 6 satellites, your coordinates are typically going to be 15-30ft from your actual position. 假设您对5颗或6颗卫星有良好的定位,则坐标通常会与实际位置相距15-30英尺。 This is barely enough to determine which side of the road you're on, and probably won't help you. 这仅够确定您所走的路,可能无济于事。

Car navigation systems fake it to make it seem that they are far more accurate. 汽车导航系统会伪造它,以使其看起来更加准确。 They use information such as your current position, heading, and the road data it has to plot more precisely your location. 他们使用的信息包括您当前的位置,方向以及必须更精确地绘制您的位置的道路数据。

You can prove this easily. 您可以轻松证明这一点。 Take a car GPS system, and start walking away from the road. 乘坐汽车GPS系统,然后开始远离道路。 You will have to get a decent distance away from the road before it shows you aren't on it anymore. 在显示您不再在路上之前,您必须与道路保持适当的距离。 That is because the software is trying to compensate for the inaccuracy of the coordinates coming from the GPS. 那是因为该软件试图补偿来自GPS的坐标的不准确性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM