We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf5d75 commit de80d65Copy full SHA for de80d65
python/openlocationcode.py
@@ -208,7 +208,7 @@ def isFull(code):
208
including any separator characters.
209
"""
210
def encode(latitude, longitude, codeLength=PAIR_CODE_LENGTH_):
211
- if codeLength < 2 or (codeLength < SEPARATOR_POSITION_ and codeLength % 2 == 1):
+ if codeLength < 2 or (codeLength < PAIR_CODE_LENGTH_ and codeLength % 2 == 1):
212
raise ValueError('Invalid Open Location Code length - ' + str(codeLength))
213
# Ensure that latitude and longitude are valid.
214
latitude = clipLatitude(latitude)
0 commit comments