code: private List<Coordinate> getCoordinates(List<Geometry> geometries) {
  		List<Coordinate> coordinates = new ArrayList<Coordinate>();
  		for (Geometry geometry : geometries) {
  			Coordinate[] geometryCoordinates = geometry.getCoordinates();
  			for (int i = 0; i < geometryCoordinates.length; i++) {
  				coordinates.add(geometryCoordinates[i]);
  			}
  		}
  		return coordinates;
  	}
docs: Get a single list of coordinates from a list of geometries.