Which gps library would you recommend for python?

前端 未结 6 1456
不思量自难忘°
不思量自难忘° 2021-02-01 11:05

I\'m looking for a free library for python that can calculate your direction and your speed from GPS coordinates and maybe can calculate if you are in some boundaries or things

6条回答
  •  误落风尘
    2021-02-01 11:33

    Most good GPS units (we use Oncore M12M) will actually give you, as output, your velocity and heading. I would first check your GPS receiver's documentation to see if this information is already being sent, or if such a message can be enabled. In my experience, this data is usually part of the standard telemetry a receiver will give you.

    If that doesn't work, I think your best bet is using the details of WGS-84 (the GPS coordinate system) to obtain an actual (x,y,z) coordinate and then difference it with the next one to find your heading and take the magnitude of the difference over the time interval to find your velocity. Some details here: http://topex.ucsd.edu/geodynamics/14gravity1_2.pdf

    If you really want a package that does all this, I think pyEphem is pretty good, although I think you might save a little time searching and gain some good knowledge by writing it yourself.

    (Sorry if unhelpful, first time poster, still learning how to stack overflow)

提交回复
热议问题