geoWithin method

LogicCommand geoWithin(
  1. dynamic geometry
)

Implementation

LogicCommand geoWithin(dynamic 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,
  });
}