Class Query.GeoRegion.Rectangle (2.0.0)

public static final class Query.GeoRegion.Rectangle extends Query.GeoRegion

A simple geographical region bounded by two latitude lines, and two longitude lines, i.e., a "rectangle". It's not really a rectangle, of course, because longitude lines are not really parallel.

Intended for use in a geo-containment predicate filter.

Inheritance

java.lang.Object > Query.GeoRegion > Query.GeoRegion.Rectangle

Constructors

Rectangle(GeoPt southwest, GeoPt northeast)

public Rectangle(GeoPt southwest, GeoPt northeast)
Parameters
NameDescription
southwestGeoPt
northeastGeoPt

Methods

contains(GeoPt point)

public boolean contains(GeoPt point)

Determines whether the given GeoPt value lies within this geographic region. If the point lies on the border of the region it is considered to be contained.

Parameter
NameDescription
pointGeoPt
Returns
TypeDescription
boolean
Overrides

equals(@Nullable Object o)

public boolean equals(@Nullable Object o)
Parameter
NameDescription
o@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getNortheast()

public GeoPt getNortheast()
Returns
TypeDescription
GeoPt

getSouthwest()

public GeoPt getSouthwest()
Returns
TypeDescription
GeoPt

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides