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
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 Details
-
ofLonLat
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.
-