Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_GeoHashNeighbor

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

Format: ST_GeoHashNeighbor(geohash: String, direction: String)

Example:

Query:

SELECT ST_GeoHashNeighbor('u1pb', 'n')

Result:

+-----------------------------+
|geohash_neighbor             |
+-----------------------------+
|u1pc                         |
+-----------------------------+