GPS踪迹所覆盖的国家

发布于 2025-02-03 01:02:30 字数 100 浏览 1 评论 0原文

我有GPS跟踪,我希望找出哪些国家有效地涉及。换句话说,如果我从头到尾都浏览了哪个国家所做的痕迹。 是否有一个API调用可以帮助我完成此任务?

罗希特有关

I have a GPS trace and I wish to find out which countries does this trace effectively span. In other words if I go over the trace from beginning to end which countries does the trace go over.
Is there an API call which can help me accomplish this task?

with kind regards

Rohit

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

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

发布评论

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

评论(1

情愿 2025-02-10 01:02:30

如果您想自己编程:

  1. 以纬度经度格式(WGS84)下载粗糙的国家边界。 (在此主题上有堆叠的答案)
  2. 对于GPS跟踪的每个坐标)称为“点in-polygon”算法,每个国家都表示为一个多边形。您可能需要忽略诸如飞地之类的特殊情况。 (那将是一个有孔的国家多边形)

If you want to program it yourself:

  1. Download the rough country borders as polygons in latitude longitude format (WGS84). (There are stackoverflow answers on this topic)
  2. for each coordinate of the GPS trace call a "point-in-polygon" algorithm, where each country is represented as one polygon. You might want to ignore special situations like enclaves. (That would be a country polygon with holes)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文