Skip to content

Commit

Permalink
Edge case while shortening (#502)
Browse files Browse the repository at this point in the history
Fixing edge case described in #483 by reverting conditional from "until less" to "while more".
  • Loading branch information
bocops authored Oct 10, 2022
1 parent 75f4f40 commit 817c008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The resulting code must include the "+" character (the format separator).

Codes that include padding characters must not be shortened.

Digits can be removed from the code, until the precision of the position is less than twice the maximum of the latitude or longitude offset between the code center and the reference location.
Digits can be removed from the code, while the precision of the position is more than twice the maximum of the latitude or longitude offset between the code center and the reference location.
Recovery of the original code must meet the same criteria.

For example, 8FVC9G8F+6W has the center 47.365562,8.524813. The following table shows what it can be shortened to, relative to various locations:
Expand Down

1 comment on commit 817c008

@Saimonredo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Please sign in to comment.