@Test public void testDegreesParser() { GeoPoint actual = JosmCoordinatesParser.parse("39.095973\u00B0 -94.573414\u00B0"); double testLatitude = 39.095973; double testLongitude = -94.573414; assertEquals("Failed to parse 39.095973\u00B0 -94.573414\u00B0", testLatitude, actual.getLatitude(), 0.000001); assertEquals("Failed to parse 39.095973\u00B0 -94.573414\u00B0", testLongitude, actual.getLongitude(), 0.000001); actual = JosmCoordinatesParser.parse("N 39.095973 W 94.573414"); assertEquals("Failed to parse N 39.095973 W 94.573414", testLatitude, actual.getLatitude(), 0.000001); assertEquals("Failed to parse N 39.095973 W 94.573414", testLongitude, actual.getLongitude(), 0.000001); actual = JosmCoordinatesParser.parse("39.095973N, 94.573414W"); assertEquals("Failed to parse 39.095973N, 94.573414W", testLatitude, actual.getLatitude(), 0.000001); assertEquals("Failed to parse 39.095973N, 94.573414W", testLongitude, actual.getLongitude(), 0.000001); }
@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; }