Approximate a region on the sphere by a (possibly interior) covering of S2Cells.
S2Covering(x, max_cells, min_level, max_level, interior = FALSE)
Region to cover. Currently it must be a polygon or cap.
Positive integer. Maximal number of cells to use in the covering.
Integer between 0 and 30 specifying the lowest cell level to use. Must be less than or equal to `max_level`.
Integer between 0 and 30 specifying the highest cell level to use. Must be greater than or equal to `min_level`.
Logical to get an interior covering.
A list containing an entry `ids` with the ids of the S2Cells used to cover the region and possibly other entries for internal usage.