Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculating distance #153

Open
Petros626 opened this issue Feb 8, 2023 · 0 comments
Open

calculating distance #153

Petros626 opened this issue Feb 8, 2023 · 0 comments

Comments

@Petros626
Copy link

Petros626 commented Feb 8, 2023

Hello,

I'm quite new to the Neo 6M GPS module and this library, but in my project I want to get an action, after calculating the distance (in m) from two different positions. Normally to get the latitude and longitude it would be something like that:

if newdata[0:6] == "$GPRMC":
module_data = pynmea2.parse(newdata)
lat=module_data.latitude
lng=module_data.longitude

So how to keep one point and measure a second one for subtract them to the distance in meters?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant