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

> Return the neighboring geohash cell in the specified direction.

Return the neighboring geohash cell in the specified direction.

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

## Signature

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

ST_GeoHashNeighbor(geohash: ColumnOrName, direction: Union[ColumnOrName, str]) -> Column
```

## Parameters

<ParamField path="geohash" type="ColumnOrName" required>
  Geohash string column.
</ParamField>

<ParamField path="direction" type="Union[ColumnOrName, str]" required>
  Compass direction: 'n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw'.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Neighboring geohash string.
</ResponseField>


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