Skip to content

Commit 5f6c6ea

Browse files
authored
Update openlocationcode.py
Typo
1 parent 34c0928 commit 5f6c6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/openlocationcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def recoverNearest(shortcode, referenceLatitude, referenceLongitude):
304304
# If the proposed code is more than half a cell north of the reference location,
305305
# it's too far, and the best match will be one cell south.
306306
codeArea.latitudeCenter -= resolution
307-
elif (referenceLatitude - halfResolution > codeArea.latitudeCenter &&
307+
elif (referenceLatitude - halfResolution > codeArea.latitudeCenter and
308308
codeArea.latitudeCenter + resolution <= LATITUDE_MAX_):
309309
# If the proposed code is more than half a cell south of the reference location,
310310
# it's too far, and the best match will be one cell north.

0 commit comments

Comments
 (0)