> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_H3KRing (Python)

> Cover Geometry with H3 Cells and return a List of Long type cell IDs :param cell: original cell :type cell: long :param k: the k number of rings spread from the original cell :type k: int :param...

Cover Geometry with H3 Cells and return a List of Long type cell IDs

SQL reference: [`ST_H3KRing`](/reference/wherobots-db/geometry-data/spatial-indexing/ST_H3KRing)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_H3KRing

ST_H3KRing(
    cell: Union[ColumnOrName, int],
    k: Union[ColumnOrName, int],
    exact_ring: Union[ColumnOrName, bool],
) -> Column
```

## Parameters

<ParamField path="cell" type="Union[ColumnOrName, int]" required>
  original cell
</ParamField>

<ParamField path="k" type="Union[ColumnOrName, int]" required>
  the k number of rings spread from the original cell
</ParamField>

<ParamField path="exact_ring" type="Union[ColumnOrName, bool]" required>
  if exactDistance is true, it will only return the cells on the exact kth ring, else will return all 0 - kth neighbors
</ParamField>

## Returns

<ResponseField name="return" type="List[long]">
  List of cellIDs
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.