Skip to content

Commit dfe8826

Browse files
committed
spelling: latitude
1 parent 21986bc commit dfe8826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/openlocationcode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def encode(latitude, longitude, codeLength=PAIR_CODE_LENGTH_):
216216
# Latitude 90 needs to be adjusted to be just less, so the returned code
217217
# can also be decoded.
218218
if latitude == 90:
219-
latitude = latitude - computeLatitutePrecision(codeLength)
219+
latitude = latitude - computeLatitudePrecision(codeLength)
220220
code = encodePairs(latitude, longitude, min(codeLength, PAIR_CODE_LENGTH_))
221221
# If the requested length indicates we want grid refined codes.
222222
if codeLength > PAIR_CODE_LENGTH_:
@@ -379,7 +379,7 @@ def clipLatitude(latitude):
379379
have different precisions due to the grid method having fewer columns than
380380
rows.
381381
"""
382-
def computeLatitutePrecision(codeLength):
382+
def computeLatitudePrecision(codeLength):
383383
if codeLength <= 10:
384384
return pow(20, math.floor((codeLength / -2) + 2))
385385
return pow(20, -3) / pow(GRID_ROWS_, codeLength - 10)

0 commit comments

Comments
 (0)