code: public CompoundCurve toCompoundCurveFromOptions(
              MultiPolylineOptions multiPolylineOptions, boolean hasZ,
              boolean hasM) {
  
          CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
  
          for (PolylineOptions polyline : multiPolylineOptions
                  .getPolylineOptions()) {
              LineString lineString = toLineString(polyline);
              compoundCurve.addLineString(lineString);
          }
  
          return compoundCurve;
      }
docs: Convert a {@link MultiPolylineOptions} to a {@link CompoundCurve}
  
  @param multiPolylineOptions multi polyline options
  @param hasZ                 has z flag
  @param hasM                 has m flag
  @return compound curve