> ## 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_H3CellDistance (Python)

> Cover Geometry with H3 Cells and return a List of Long type cell IDs :param cell: start cell :type cell: long :param k: end cell :type k: int :return: distance between cells :rtype: Long

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

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

## Signature

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

ST_H3CellDistance(
    cell1: Union[ColumnOrName, int],
    cell2: Union[ColumnOrName, int],
) -> Column
```

## Parameters

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

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

## Returns

<ResponseField name="return" type="Long">
  distance between cells
</ResponseField>


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