code: private MultiPoint asMultiPoint(List<List> coords, CrsId crsId) throws IOException {
          if (coords == null || coords.isEmpty()) {
              throw new IOException("A multipoint contains at least one point");
          }
          Point[] points = new Point[coords.size()];
          for (int i = 0; i < coords.size(); i++) {
              points[i] = asPoint(coords.get(i), crsId);
          }
          return new MultiPoint(points);
      }
docs: Parses the JSON as a linestring geometry
  
  
  @param coords A list of coordinates of points.
  @param crsId
  @return An instance of linestring
  @throws IOException if the given json does not correspond to a linestring or can be parsed as such.