OsmUtils { public static List<IGeoPoint> toGeoPoints(List<LatLng> points) { List<IGeoPoint> result = new ArrayList<>(); for (LatLng point : points) { result.add( toGeoPoint(point) ); } return result; }  static IGeoPoint toGeoPoint(LatLng latLng); static List<IGeoPoint> toGeoPoints(List<LatLng> points); static LatLng toLatLng(IGeoPoint geoPoint); static OverlayItem.HotspotPlace anchorToHotspot(float u, float v);  }
@Test public void testToGeoPoints() throws Exception { final List<LatLng> input = asList( new LatLng(10d, 20d), new LatLng(30d, 40d) ); final List<GeoPoint> expected = asList( new GeoPoint(10d, 20d), new GeoPoint(30d, 40d) ); List<IGeoPoint> output = OsmUtils.toGeoPoints(input); assertEquals(expected, output); }