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

> Return the geohash of a geometry column at a given precision level.

Return the geohash of a geometry column at a given precision level.

SQL reference: [`ST_GeoHash`](/reference/wherobots-db/geometry-data/output/ST_GeoHash)

## Signature

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

ST_GeoHash(geometry: ColumnOrName, precision: Union[ColumnOrName, int]) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to hash.
</ParamField>

<ParamField path="precision" type="Union[ColumnOrName, int]" required>
  Precision level to hash geometry at, given as an integer or an integer column.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Geohash of geometry as a string column.
</ResponseField>


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