We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2049fc9 commit 5f8d6b2Copy full SHA for 5f8d6b2
1 file changed
ruby/lib/plus_codes/open_location_code.rb
@@ -89,6 +89,7 @@ def encode_integers(lat_val, lng_val, code_length = PAIR_CODE_LENGTH)
89
if invalid_length?(code_length)
90
raise ArgumentError, 'Invalid Open Location Code(Plus+Codes) length'
91
end
92
+
93
code_length = MAX_CODE_LENGTH if code_length > MAX_CODE_LENGTH
94
# Initialise the code using an Array. Array.join is more efficient that
95
# string addition.
0 commit comments