java.lang.Object
io.lettuce.core.GeoCoordinates
public class GeoCoordinates extends Object
A tuple consisting of numerical geo data points to describe geo coordinates (longitude/latitude coordinates according to
WGS84).
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description GeoCoordinates(Number x, Number y)Creates newGeoCoordinates. -
Method Summary
-
Constructor Details
-
GeoCoordinates
Creates newGeoCoordinates.- Parameters:
x- the longitude, must not benull.y- the latitude, must not benull.
-
-
Method Details
-
create
Creates newGeoCoordinates.- Parameters:
x- the longitude, must not benull.y- the latitude, must not benull.- Returns:
GeoCoordinates.
-
getX
- Returns:
- the longitude.
-
getY
- Returns:
- the latitude.
-
equals
-
hashCode
public int hashCode() -
toString
-