跳转至
🎉 Apache Sedona 1.9.1 已正式发布!🗺️ 新增 Geography SQL 函数、Box2D 与 Box3D 类型、栅格 Python UDF 等。查看发布说明 →

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>

Since: v1.9.0

SQL Example

SELECT ST_GeoHashNeighbors('u1pb')

Output:

[u1pc, u301, u300, u2bp, u0zz, u0zx, u1p8, u1p9]

ST_GeoHashNeighbors