public class Coordinate extends Object
If you need to construct a coordinate, use the ofLonLat(double, double)
static method.
Modifier and Type | Method and Description |
---|---|
double |
lat()
Returns the latitude of this coordinate.
|
double |
lon()
Returns the longitude of this coordinate.
|
static Coordinate |
ofLonLat(double lon,
double lat)
Creates a new
Coordinate with a longitude and a latitude. |
public static Coordinate ofLonLat(double lon, double lat)
Coordinate
with a longitude and a latitude.lon
- the longitude of the coordinate.lat
- the latitude of the coordinate.Coordinate
.public double lon()
public double lat()
Copyright © 2021 Couchbase, Inc.. All rights reserved.