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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe value of the coordinates member is always anIterable.getType()String value representing the type of theGeoJsonobject.doublegetX()doublegetY()inthashCode()static GeoJsonPointof(double x, double y) CreatesGeoJsonPointfor given coordinates.static GeoJsonPointCreatesGeoJsonPointfor givenGeoPoint.static GeoJsonPointCreatesGeoJsonPointfor givenPoint.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Method Details
-
of
CreatesGeoJsonPointfor given coordinates.- Parameters:
x-y-
-
of
CreatesGeoJsonPointfor givenPoint.- Parameters:
point- must not be null.
-
of
CreatesGeoJsonPointfor givenGeoPoint.- Parameters:
geoPoint- must not be null.
-
getType
Description copied from interface:GeoJsonString value representing the type of theGeoJsonobject. -
getX
public double getX() -
getY
public double getY() -
getCoordinates
Description copied from interface:GeoJsonThe value of the coordinates member is always anIterable. The structure for the elements within is determined byGeoJson.getType()of geometry.- Specified by:
getCoordinatesin interfaceGeoJson<List<Double>>- Returns:
- will never be null.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-