code: public static MultiPolyline addPolylinesToMap(GoogleMap map,
                                                    MultiPolylineOptions polylines) {
          MultiPolyline multiPolyline = new MultiPolyline();
          for (PolylineOptions polylineOption : polylines.getPolylineOptions()) {
              if (polylines.getOptions() != null) {
                  polylineOption.color(polylines.getOptions().getColor());
                  polylineOption.geodesic(polylines.getOptions().isGeodesic());
                  polylineOption.visible(polylines.getOptions().isVisible());
                  polylineOption.zIndex(polylines.getOptions().getZIndex());
                  polylineOption.width(polylines.getOptions().getWidth());
              }
              Polyline polyline = addPolylineToMap(map, polylineOption);
              multiPolyline.add(polyline);
          }
          return multiPolyline;
      }
docs: Add a list of Polylines to the map
  
  @param map       google map
  @param polylines multi polyline options
  @return multi polyline