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

Returns the neighbor geohash cell in the given direction. Valid directions are: `n`, `ne`, `e`, `se`, `s`, `sw`, `w`, `nw` (case-insensitive).

## Signatures

```sql theme={"system"}
ST_GeoHashNeighbor(geohash: String, direction: String)
```

## Parameters

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

<ParamField body="direction" type="String" required>
  The direction value.
</ParamField>

## Return type

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

## Example

```sql theme={"system"}
SELECT ST_GeoHashNeighbor('u1pb', 'n')
```

```
u1pc
```

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