> ## 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

Returns the 8 neighboring geohash cells of a given geohash string. The result is an array of 8 geohash strings in the order: N, NE, E, SE, S, SW, W, NW.

## Signatures

```sql theme={"system"}
ST_GeoHashNeighbors(geohash: String)
```

## Parameters

<ParamField body="geohash" type="String" required>
  A GeoHash string.
</ParamField>

## Return type

<ResponseField type="Array<String>">
  A string representation.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_GeoHashNeighbors('u1pb')
```

```
[u1pc, u301, u300, u2bp, u0zz, u0zx, u1p8, u1p9]
```

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_GeoHashNeighbors/ST_GeoHashNeighbors.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=eb0e69fcb72408e6d671f9c8a0b7a257" alt="ST_GeoHashNeighbors" width="400" height="200" data-path="images/sql-functions/ST_GeoHashNeighbors/ST_GeoHashNeighbors.svg" />
