Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

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)

Return type: String

Example:

Query:

SELECT ST_GeoHashNeighbor('u1pb', 'n')

Result:

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

ST_GeoHashNeighbor