@Test public void fromStringValidTest() { LatLong latLong = LatLongUtils.fromString(LATITUDE + DELIMITER + LONGITUDE); Assert.assertEquals(LATITUDE, latLong.latitude, 0); Assert.assertEquals(LONGITUDE, latLong.longitude, 0); }
public static LatLong fromString(String latLongString) { double[] coordinates = parseCoordinateString(latLongString, 2); return new LatLong(coordinates[0], coordinates[1]); }
LatLongUtils { public static LatLong fromString(String latLongString) { double[] coordinates = parseCoordinateString(latLongString, 2); return new LatLong(coordinates[0], coordinates[1]); } }
LatLongUtils { public static LatLong fromString(String latLongString) { double[] coordinates = parseCoordinateString(latLongString, 2); return new LatLong(coordinates[0], coordinates[1]); } private  LatLongUtils(); }
LatLongUtils { public static LatLong fromString(String latLongString) { double[] coordinates = parseCoordinateString(latLongString, 2); return new LatLong(coordinates[0], coordinates[1]); } private  LatLongUtils(); static int degreesToMicrodegrees(double coordinate); static LatLong fromString(String latLongString); static double latitudeDistance(int meters); static double longitudeDistance(int meters, double latitude); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static byte zoomForBounds(Dimension dimension, BoundingBox boundingBox, int tileSize); }
LatLongUtils { public static LatLong fromString(String latLongString) { double[] coordinates = parseCoordinateString(latLongString, 2); return new LatLong(coordinates[0], coordinates[1]); } private  LatLongUtils(); static int degreesToMicrodegrees(double coordinate); static LatLong fromString(String latLongString); static double latitudeDistance(int meters); static double longitudeDistance(int meters, double latitude); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static byte zoomForBounds(Dimension dimension, BoundingBox boundingBox, int tileSize); static final double EQUATORIAL_RADIUS; static final double LATITUDE_MAX; static final double LATITUDE_MIN; static final double LONGITUDE_MAX; static final double LONGITUDE_MIN; }