我们如何使用航路点计算海上距离?

发布于 2024-08-29 06:05:03 字数 278 浏览 3 评论 0原文

我有一个问题,我真的很坚持这一点。我有带有航路点和路由点的端口数据库,我需要在两个端口之间的距离计算中使用它们。我做了很多研发来找到给出两点之间距离的公式。我还需要可能的最短路线。

我查看了允许用户计算距离的在线工具。但我也想自己做同样的事情。我已经查看了世界港口距离计算器。我回顾了大圆公式来实现这一目标,但我不知道我们如何避免海上距离的景观以及我需要在哪个方向找到第二个港口的距离。

I have one query in which I really stuck at that. I have port database with waypoints and also routing points which I need to use in distance calculation between two ports. I have done lots of R&D to find formula which gives me distance between two points. I also need shortest route which is possible.

I have reviewed online tools which allow user to calculate the distance. But I want to do the same at my own. I have reviewed Port World Distance Calculator. I reviewed the Great Circle formula to achieve that but I don't know that how we avoid landscapes in sea distance and in which direction I need to find distance for second port.

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

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

发布评论

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

评论(1

霊感 2024-09-05 06:05:03

最简单的方法 - 只需在数据库中创建一个表,如下所示:

端口1id:端口2id:距离

端口数量有限,此表可以让您灵活地设置正确的距离

The simpliest that comes - just create a table in your database like:

port1id : port2id : distance

number of ports are limited, and this table will give you flexibility to set correct distance

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