Skip to content

Commit 4caed97

Browse files
authored
Update openlocationcode.js
Remove stupid typo.
1 parent c28be98 commit 4caed97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/closure/openlocationcode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@ function recoverNearest(
417417
// than half the resolution, we need to move it north or south but keep it
418418
// within -90 to 90 degrees.
419419
if (referenceLatitude + halfResolution < codeArea.latitudeCenter &&
420-
codeArea.latitudeCenter - resolution >= -LATITUDE_MAX_) {
420+
codeArea.latitudeCenter - resolution >= -LATITUDE_MAX) {
421421
// If the proposed code is more than half a cell north of the reference location,
422422
// it's too far, and the best match will be one cell south.
423423
codeArea.latitudeCenter -= resolution;
424424
} else if (referenceLatitude - halfResolution > codeArea.latitudeCenter &&
425-
codeArea.latitudeCenter + resolution <= LATITUDE_MAX_) {
425+
codeArea.latitudeCenter + resolution <= LATITUDE_MAX) {
426426
// If the proposed code is more than half a cell south of the reference location,
427427
// it's too far, and the best match will be one cell north.
428428
codeArea.latitudeCenter += resolution;

0 commit comments

Comments
 (0)