use of com.couchbase.client.java.util.Coordinate in project couchbase-jvm-clients by couchbase.
the class GeoPolygonQuery method injectParams.
@Override
protected void injectParams(final JsonObject input) {
final JsonArray points = JsonArray.create();
for (Coordinate coordinate : coordinates) {
points.add(JsonArray.from(coordinate.lon(), coordinate.lat()));
}
input.put("polygon_points", points);
if (field != null) {
input.put("field", field);
}
}
Aggregations