Package org.apache.lucene.geo
Class Point
- java.lang.Object
-
- org.apache.lucene.geo.Geometry
-
- org.apache.lucene.geo.LatLonGeometry
-
- org.apache.lucene.geo.Point
-
public final class Point extends LatLonGeometry
Represents a point on the earth's surface. You can construct the point directly withdouble
coordinates.NOTES:
- latitude/longitude values must be in decimal degrees.
- For more advanced GeoSpatial indexing and query operations see the
spatial-extras
module
-
-
Constructor Summary
Constructors Constructor Description Point(double lat, double lon)
Creates a new Point from the supplied latitude/longitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
double
getLat()
Returns latitude value at given indexdouble
getLon()
Returns longitude value at given indexint
hashCode()
protected Component2D
toComponent2D()
get a Component2D from the geometry objectString
toString()
-
Methods inherited from class org.apache.lucene.geo.LatLonGeometry
create
-
-
-
-
Method Detail
-
getLat
public double getLat()
Returns latitude value at given index
-
getLon
public double getLon()
Returns longitude value at given index
-
toComponent2D
protected Component2D toComponent2D()
Description copied from class:Geometry
get a Component2D from the geometry object- Specified by:
toComponent2D
in classGeometry
-
-