Package org.apache.lucene.geo
Class XYPoint
java.lang.Object
org.apache.lucene.geo.XYGeometry
org.apache.lucene.geo.XYPoint
Represents a point on the earth's surface. You can construct the point directly with
double
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
ConstructorDescriptionXYPoint
(float x, float y) Creates a new Point from the supplied latitude/longitude. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
getX()
Returns latitude value at given indexfloat
getY()
Returns longitude value at given indexint
hashCode()
protected Component2D
get a Component2D from this objecttoString()
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
Constructor Details
-
XYPoint
public XYPoint(float x, float y) Creates a new Point from the supplied latitude/longitude.
-
-
Method Details
-
getX
public float getX()Returns latitude value at given index -
getY
public float getY()Returns longitude value at given index -
toComponent2D
Description copied from class:XYGeometry
get a Component2D from this object- Specified by:
toComponent2D
in classXYGeometry
-
equals
-
hashCode
public int hashCode() -
toString
-