geoNear method

LogicCommand geoNear({
  1. Point? geometry,
  2. required num maxDistance,
  3. required num minDistance,
})

Implementation

LogicCommand geoNear({
  Point? geometry,
  required num maxDistance,
  required num minDistance,
}) {
  if (geometry == null) {
    throw CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: '"geometry" can not be null.',
    );
  }

  return this.queryOP(QueryCommandsLiteral.GEO_NEAR, {
    'geometry': geometry,
    'maxDistance': maxDistance,
    'minDistance': minDistance
  });
}