Skip to content

Commit 736e46a

Browse files
Issue: rounding to millionths causes consistent inaccuracy (up to 14 cm)
1 parent 95df628 commit 736e46a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/mapcode/Mapcode.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,13 +402,13 @@ public static boolean containsTerritory(@Nonnull final String mapcode) throws Il
402402
// @@@ problem: encode() rounds to millionths, introducing a consistent error !
403403
7.50,
404404
1.50,
405-
0.365,
406-
0.160,
407-
0.122,
408-
0.113,
409-
0.113,
410-
0.113,
411-
0.113,
405+
0.39,
406+
0.19,
407+
0.149,
408+
0.14,
409+
0.14,
410+
0.14,
411+
0.14,
412412
};
413413

414414
/* @@@ correct values TODO

0 commit comments

Comments
 (0)