We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88bf38 commit cd29911Copy full SHA for cd29911
dart/lib/src/open_location_code.dart
@@ -348,14 +348,6 @@ String recoverNearest(
348
centerLatitude += resolution;
349
}
350
351
- // How many degrees longitude is the code from the reference?
352
- degreesDifference = codeArea.center.longitude - referenceLongitude;
353
- if (degreesDifference > areaToEdge) {
354
- centerLongitude -= resolution;
355
- } else if (degreesDifference < -areaToEdge) {
356
- centerLongitude += resolution;
357
- }
358
-
359
// How many degrees longitude is the code from the reference?
360
if (referenceLongitude + halfResolution < centerLongitude) {
361
centerLongitude -= resolution;
0 commit comments