Package com.couchbase.client.java.util
Class Coordinate
- java.lang.Object
-
- com.couchbase.client.java.util.Coordinate
-
public class Coordinate extends Object
A coordinate is a tuple of a latitude and a longitude.If you need to construct a coordinate, use the
ofLonLat(double, double)static method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublelat()Returns the latitude of this coordinate.doublelon()Returns the longitude of this coordinate.static CoordinateofLonLat(double lon, double lat)Creates a newCoordinatewith a longitude and a latitude.
-
-
-
Method Detail
-
ofLonLat
public static Coordinate ofLonLat(double lon, double lat)
Creates a newCoordinatewith a longitude and a latitude.- Parameters:
lon- the longitude of the coordinate.lat- the latitude of the coordinate.- Returns:
- a new
Coordinate.
-
lon
public double lon()
Returns the longitude of this coordinate.
-
lat
public double lat()
Returns the latitude of this coordinate.
-
-