Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

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

Since: v1.9.0

Example:

SELECT ST_GeoHashNeighbor('u1pb', 'n')

Output:

u1pc

ST_GeoHashNeighbor