Package org.apache.lucene.geo
Class Point
java.lang.Object
org.apache.lucene.geo.LatLonGeometry
org.apache.lucene.geo.Point
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-extrasmodule
-
Constructor Summary
ConstructorsConstructorDescriptionPoint(double lat, double lon) Creates a new Point from the supplied latitude/longitude. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetLat()Returns latitude value at given indexdoublegetLon()Returns longitude value at given indexinthashCode()protected Component2Dget aComponent2Dfrom this geometrytoString()Methods inherited from class org.apache.lucene.geo.LatLonGeometry
create
-
Constructor Details
-
Point
public Point(double lat, double lon) Creates a new Point from the supplied latitude/longitude.
-
-
Method Details
-
getLat
public double getLat()Returns latitude value at given index -
getLon
public double getLon()Returns longitude value at given index -
toComponent2D
Description copied from class:LatLonGeometryget aComponent2Dfrom this geometry- Specified by:
toComponent2Din classLatLonGeometry
-
equals
-
hashCode
public int hashCode() -
toString
-