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_GeoHashNeighbors

Introduction: 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.

Format: ST_GeoHashNeighbors(geohash: String)

Return type: Array<String>

Example:

Query:

SELECT ST_GeoHashNeighbors('u1pb')

Result:

+-----------------------------+
|geohash_neighbors            |
+-----------------------------+
|[u1pc, u301, u300, u2bp, ...] |
+-----------------------------+

ST_GeoHashNeighbors