Class GeoJsonPoint
java.lang.Object
org.springframework.data.elasticsearch.core.geo.GeoJsonPoint
GeoJson
representation of Point
.Copied from Spring Data Mongodb, not derived from
Point
as this conflicts with the already existing converter
for Point in GeoConverters
.- Since:
- 4.1
- Author:
- Christoph Strobl, Peter-Josef Meisch
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The value of the coordinates member is always anIterable
.getType()
String value representing the type of theGeoJson
object.double
getX()
double
getY()
int
hashCode()
static GeoJsonPoint
of
(double x, double y) CreatesGeoJsonPoint
for given coordinates.static GeoJsonPoint
CreatesGeoJsonPoint
for givenGeoPoint
.static GeoJsonPoint
CreatesGeoJsonPoint
for givenPoint
.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Method Details
-
of
CreatesGeoJsonPoint
for given coordinates.- Parameters:
x
-y
-
-
of
CreatesGeoJsonPoint
for givenPoint
.- Parameters:
point
- must not be null.
-
of
CreatesGeoJsonPoint
for givenGeoPoint
.- Parameters:
geoPoint
- must not be null.
-
getType
Description copied from interface:GeoJson
String value representing the type of theGeoJson
object. -
getX
public double getX() -
getY
public double getY() -
getCoordinates
Description copied from interface:GeoJson
The value of the coordinates member is always anIterable
. The structure for the elements within is determined byGeoJson.getType()
of geometry.- Specified by:
getCoordinates
in interfaceGeoJson<List<Double>>
- Returns:
- will never be null.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-