@Test public void testUtmParser() { double testLatitude = 39.095973; double testLongitude = -94.573414; GeoPoint actual = JosmCoordinatesParser.parse("15N 363936 4328605"); assertEquals("Failed to parse 15N 363936 4328605", testLatitude, actual.getLatitude(), 0.000003); assertEquals("Failed to parse 15N 363936 4328605", testLongitude, actual.getLongitude(), 0.000003); actual = JosmCoordinatesParser.parse("15N3639364328605"); assertEquals("Failed to parse 15N3639364328605", testLatitude, actual.getLatitude(), 0.000003); assertEquals("Failed to parse 15N3639364328605", 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; }