Skip to content

calculating distance #153

Description

@Petros626

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions