Skip to content

Commit dbe1131

Browse files
authored
Update open_location_code.dart
1 parent f6ee402 commit dbe1131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dart/lib/src/open_location_code.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,12 @@ String recoverNearest(
337337
// than half the resolution, we need to move it north or south but keep it
338338
// within -90 to 90 degrees.
339339
if (referenceLatitude + halfResolution < centerLatitude &&
340-
centerLatitude - resolution >= -latitidueMax) {
340+
centerLatitude - resolution >= -latitudeMax) {
341341
// If the proposed code is more than half a cell north of the reference location,
342342
// it's too far, and the best match will be one cell south.
343343
centerLatitude -= resolution;
344344
} else if (referenceLatitude - halfResolution > centerLatitude &&
345-
centerLatitude + resolution <= latitidueMax) {
345+
centerLatitude + resolution <= latitudeMax) {
346346
// If the proposed code is more than half a cell south of the reference location,
347347
// it's too far, and the best match will be one cell north.
348348
centerLatitude += resolution;

0 commit comments

Comments
 (0)