final class
S2Cap represents a disc-shaped region defined by a center and radius.
final class
An S2Cell is an S2Region object that represents a cell.
class
An S2CellUnion is a region consisting of cells of various sizes.
final class
S2LatLngRect represents a latitude-longitude rectangle.
static final class
This class is a builder for S2LatLngRect instances.
class
final class
An S2Loop represents a simple spherical polygon.
class
An S2Point represents a point on the unit sphere as a 3D vector.
final class
An S2PointRegion is a region that contains a single point.
final class
An S2Polygon is an S2Region object that represents a polygon.
final class
An S2Polyline represents a sequence of zero or more vertices connected by straight edges
(geodesics).
class
An S2RegionIntersection represents an intersection of overlapping regions.
class
An S2RegionUnion represents a union of possibly overlapping regions.
static class
A point with a known containment relationship.
class
This class wraps an S2ShapeIndex object with the additional methods needed to implement the
S2Region API, in order to allow S2RegionCoverer to compute S2CellId coverings of arbitrary
collections of geometry.
private static void
Given a region and a starting cell, return the set of all the edge-connected cells at the same
level that intersect "region".
Return a normalized cell union that covers the given region and satisfies the restrictions
*EXCEPT* for minLevel() and levelMod().
void
void
Computes a list of cell ids that covers the given region and satisfies the various restrictions
specified above.
Return a normalized cell union that is contained within the given region and satisfies the
restrictions *EXCEPT* for minLevel() and levelMod().
void
void
Computes a list of cell ids that is contained within the given region and satisfies the various
restrictions specified above; note that if the max cell level is not specified very carefully
this method can try to create an enormous number of cells, wasting a lot of time and memory, so
care should be taken to set a max level suitable for the scale of the region being covered.
static void
Given a connected region and a starting point, return a set of cells at the given level that
cover the region.
void