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
Name Description
southwest GeoPt
northeast GeoPt

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
Name Description
point GeoPt
Returns
Type Description
boolean
Overrides

equals(@Nullable Object o)

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

getNortheast()

public GeoPt getNortheast()
Returns
Type Description
GeoPt

getSouthwest()

public GeoPt getSouthwest()
Returns
Type Description
GeoPt

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides