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

Signatures

ST_GeoHashNeighbor(geohash: String, direction: String)

Parameters

geohash
String
required
A GeoHash string.
direction
String
required
The direction value.

Return type

A string representation.

Example

SELECT ST_GeoHashNeighbor('u1pb', 'n')
u1pc
ST_GeoHashNeighbor