File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -417,12 +417,12 @@ function recoverNearest(
417
417
// than half the resolution, we need to move it north or south but keep it
418
418
// within -90 to 90 degrees.
419
419
if ( referenceLatitude + halfResolution < codeArea . latitudeCenter &&
420
- codeArea . latitudeCenter - resolution >= - LATITUDE_MAX_ ) {
420
+ codeArea . latitudeCenter - resolution >= - LATITUDE_MAX ) {
421
421
// If the proposed code is more than half a cell north of the reference location,
422
422
// it's too far, and the best match will be one cell south.
423
423
codeArea . latitudeCenter -= resolution ;
424
424
} else if ( referenceLatitude - halfResolution > codeArea . latitudeCenter &&
425
- codeArea . latitudeCenter + resolution <= LATITUDE_MAX_ ) {
425
+ codeArea . latitudeCenter + resolution <= LATITUDE_MAX ) {
426
426
// If the proposed code is more than half a cell south of the reference location,
427
427
// it's too far, and the best match will be one cell north.
428
428
codeArea . latitudeCenter += resolution ;
You can’t perform that action at this time.
0 commit comments