跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

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