Skip to content

Commit 61b91cb

Browse files
authored
Add PAIR_CODE_LENGTH
1 parent 2f600ba commit 61b91cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ruby/lib/plus_codes.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ module PlusCodes
99
# The max number of characters can be placed before the separator.
1010
SEPARATOR_POSITION = 8
1111

12+
# Maxiumum code length using lat/lng pair encoding. The area of such a
13+
# code is approximately 13x13 meters (at the equator), and should be suitable
14+
# for identifying buildings. This excludes prefix and separator characters.
15+
PAIR_CODE_LENGTH = 10
16+
1217
# The character used to pad a code
1318
PADDING = '0'.freeze
1419

0 commit comments

Comments
 (0)