S2RegionCoverer.getCovering - multiple declarations

Function S2RegionCoverer.getCovering

Returns an S2CellUnion that covers (GetCovering) or is contained within (GetInteriorCovering) the given region and satisfies the current options.

s2.s2cell_union.S2CellUnion getCovering (
  S2Region region
);

Note that if options().min_level() > 0 or options().level_mod() > 1, the by definition the S2CellUnion may not be normalized, i.e. there may be groups of four child cells that can be replaced by their parent cell.

Function S2RegionCoverer.getCovering

Like the methods above, but works directly with a vector of S2CellIds. This version can be more efficient when this method is called many times, since it does not require allocating a new vector on each call.

void getCovering (
  S2Region region,
  ref S2CellId[] covering
);