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

> Return the 8 neighboring geohash cells of the given geohash string.

Return the 8 neighboring geohash cells of the given geohash string.

The neighbors are returned in the order: \[N, NE, E, SE, S, SW, W, NW].

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

## Signature

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

ST_GeoHashNeighbors(geohash: ColumnOrName) -> Column
```

## Parameters

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

## Returns

<ResponseField name="return" type="Column">
  Array of 8 neighboring geohash strings.
</ResponseField>


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