@Test public void testMgrsParser() { double testLatitude = 39.095973; double testLongitude = -94.573414; GeoPoint actual = JosmCoordinatesParser.parse("15SUD 63936 28605"); assertEquals("Failed to parse 15SUD 63936 28605", testLatitude, actual.getLatitude(), 0.000003); assertEquals("Failed to parse 15SUD 63936 28605", testLongitude, actual.getLongitude(), 0.000003); actual = JosmCoordinatesParser.parse("15SUD6393628605"); assertEquals("Failed to parse 15SUD6393628605", testLatitude, actual.getLatitude(), 0.000003); assertEquals("Failed to parse 15SUD6393628605", testLongitude, actual.getLongitude(), 0.000003); actual = JosmCoordinatesParser.parse("15S UD 63936 28605"); assertEquals("Failed to parse 15S UD 63936 28605", testLatitude, actual.getLatitude(), 0.000003); assertEquals("Failed to parse 15S UD 63936 28605", testLongitude, actual.getLongitude(), 0.000003); }
@NonNull public static GeoPoint parse(@NonNull String input) throws IllegalArgumentException { Result result = parseWithResult(input); return result.coordinates; }
JosmCoordinatesParser { @NonNull public static GeoPoint parse(@NonNull String input) throws IllegalArgumentException { Result result = parseWithResult(input); return result.coordinates; } }
JosmCoordinatesParser { @NonNull public static GeoPoint parse(@NonNull String input) throws IllegalArgumentException { Result result = parseWithResult(input); return result.coordinates; } private  JosmCoordinatesParser(); }
JosmCoordinatesParser { @NonNull public static GeoPoint parse(@NonNull String input) throws IllegalArgumentException { Result result = parseWithResult(input); return result.coordinates; } private  JosmCoordinatesParser(); @NonNull static Result parseWithResult(@NonNull String input); @NonNull static GeoPoint parse(@NonNull String input); }
JosmCoordinatesParser { @NonNull public static GeoPoint parse(@NonNull String input) throws IllegalArgumentException { Result result = parseWithResult(input); return result.coordinates; } private  JosmCoordinatesParser(); @NonNull static Result parseWithResult(@NonNull String input); @NonNull static GeoPoint parse(@NonNull String input); static final String SOUTH; static final String NORTH; static final String WEST; static final String EAST; }