code: public MultiPoint toMultiPoint(List<LatLng> latLngs, boolean hasZ,
                                     boolean hasM) {
  
          MultiPoint multiPoint = new MultiPoint(hasZ, hasM);
  
          for (LatLng latLng : latLngs) {
              Point point = toPoint(latLng);
              multiPoint.addPoint(point);
          }
  
          return multiPoint;
      }
docs: Convert a {@link MultiLatLng} to a {@link MultiPoint}
  
  @param latLngs lat lngs
  @param hasZ    has z flag
  @param hasM    has m flag
  @return multi point