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

Produces decimal degrees that are incorrectly formatted. #27

Open
Jollyjohn opened this issue May 13, 2019 · 0 comments
Open

Produces decimal degrees that are incorrectly formatted. #27

Jollyjohn opened this issue May 13, 2019 · 0 comments

Comments

@Jollyjohn
Copy link

The code produces decimal degrees that are incorrectly formatted.

This can be seen in the init function definition:

        Setup GPS Object Status Flags, Internal Data Registers, etc
            local_offset (int): Timzone Difference to UTC
            location_formatting (str): Style For Presenting Longitude/Latitude:
                                       Decimal Degree Minute (ddm) - 40° 26.767′ N
                                       Degrees Minutes Seconds (dms) - 40° 26′ 46″ N
                                       Decimal Degrees (dd) - 40.446° N

The correct format for "dd" is +/-90° for latitude, and +/-180° for longitude, with no compass heading suffix. The compass heading is encoded into the sign of the number. (See here)
So in the example from the code would resolve to +40.446 not 40.446 N.
In the southern hemisphere, it would resolve to -40.446, not 40.446 S.

ekspla pushed a commit to ekspla/micropyGPS that referenced this issue Jan 18, 2023
Changes in dd location format.
ekspla added a commit to ekspla/micropyGPS that referenced this issue Jan 22, 2023
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