geoWithin method

dynamic geoWithin(
  1. dynamic geometry
)

Implementation

geoWithin(geometry) {
  if (!(geometry is MultiPolygon || geometry is Polygon)) {
    throw CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: '"geometry" must be of type Polygon or MultiPolygon.',
    );
  }

  return this._queryOP(QueryCommandsLiteral.GEO_WITHIN, {
    'geometry': geometry,
  });
}