在Python的Web服务器上显示和绘制GPS坐标(LAT/LON)

发布于 2025-02-03 06:50:12 字数 519 浏览 5 评论 0原文

对于我正在从事的项目,我想创建一个网络服务器来绘制车辆的GPS坐标。经过一些研究后,我在几个python库之间撕裂了,听起来很有希望,但是我不确定要使用哪个库 /最容易用来实现我所需的东西。

为了创建网络服务器,烧瓶似乎是必经之路。为了绘制和显示数据,我找到了这些库:folium,geopandas,matplotlib ...我仍然习惯了烧瓶,因此我还没有任何代码片段可以共享,对不起。

我的GPS数据(经度和纬度)在.csv文件中每次不断读取和存储一次:

Latitude,Longitude
99.92225,99.41867
99.92256,99.41879
99.9237,99.41898
99.92168,99.41599

如果有人可以帮助我或建议其他库,我将非常感谢它,这是我要实现的目标:

  • 如何创建一个网络服务器到:
    • 显示持续更新时间,LON和LAT数据
    • 跟踪并绘制地图上的GPS路线

非常感谢!

For a project I'm working on, I want to create a Webserver to plot and display GPS coordinates of a vehicle. After doing some research, I'm torn between a couple of Python libraries which sound pretty promising, but I'm just not sure which one to use / would be the easiest to use to achieve what I need.

To create the Webserver, Flask seems like the way to go. To plot and display the data, I found these libraries: Folium, Geopandas, Matplotlib... I'm still getting used to Flask so I don't have any snippets of code to share yet, sorry.

My GPS data (longitude and latitude) is continuously being read and stored once per second in .csv files:

Latitude,Longitude
99.92225,99.41867
99.92256,99.41879
99.9237,99.41898
99.92168,99.41599

I would really appreciate it, if someone could help me out or suggest other libraries, here's what I want to achieve:

  • How to create a Webserver to:
    • display the continously updating time, lon and lat data
    • track and plot the gps route on a map

Thank you very much!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文