Class CoreGeoCoordinates
java.lang.Object
com.couchbase.client.core.api.search.queries.CoreGeoCoordinates
- All Implemented Interfaces:
CoreGeoPoint
To create a new instance:
CoreGeoCoordinates eiffelTower = CoreGeoCoordinates.lat(48.858093).lon(2.294694);Or, if you prefer to specify longitude first:
CoreGeoCoordinates eiffelTower = CoreGeoCoordinates.lon(2.294694).lat(48.858093);
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A staged builder that holds a coordinate's latitude value.static final class
A staged builder that holds a coordinate's longitude value. -
Method Summary
Modifier and TypeMethodDescriptiondouble
lat()
static CoreGeoCoordinates.Lat
lat
(double lat) double
lon()
static CoreGeoCoordinates.Lon
lon
(double lon) com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode
toJson()
toString()
-
Method Details
-
lat
public double lat() -
lon
public double lon() -
toJson
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode toJson()- Specified by:
toJson
in interfaceCoreGeoPoint
-
toString
-
lat
-
lon
-