Draw coordinate precision as a narrow rectangle#122
Open
windytan wants to merge 2 commits intoliamcottle:masterfrom
Open
Draw coordinate precision as a narrow rectangle#122windytan wants to merge 2 commits intoliamcottle:masterfrom
windytan wants to merge 2 commits intoliamcottle:masterfrom
Conversation
This change renders the location precision areas as narrowed rectangles instead of circles to better reflect their broadcasted precision, and labels "Location Precision" as "Latitude Precision". Currently the imprecise coordinates are drawn as symmetric circles. This gives the user an exaggerated picture of the actual privacy level of published positions; in reality, the truncated coordinate puts the user in an area around 36% smaller. The firmware truncates outgoing positions into a binary partitioned grid (PositionModule.cpp :116). When converted to metres, the grid rectangles get squashed in the East-West direction. This is because on the ground, 1 geographic degree of longitude is only around half the length of 1 degree of latitude, while the truncation uses the same number of bits for both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change renders the location precision areas as narrowed rectangles instead of circles to reflect their broadcasted precision, and labels "Position Precision" as "Latitude Precision".
Currently the reduced-precision coordinates are drawn as symmetric circles (like in most apps). This gives the user an exaggerated picture of the actual privacy level of published positions; in reality, the truncated coordinate puts the user in an area around 36% smaller.
The firmware truncates outgoing positions into a binary partitioned grid (PositionModule.cpp :116). When converted to metres, the grid rectangles get squashed in the East-West direction. This is because on the ground, 1 geographic degree of longitude is only around half the length of 1 degree of latitude, while the truncation uses the same number of bits for both.
Situation where this could make a difference:
