Skip to main content
Returns GeoHash of the geometry with given precision

Signatures

ST_GeoHash(geom: Geometry, precision: Integer)

Parameters

geom
Geometry
required
The input geometry.
precision
Integer
required
The number of decimal places.

Return type

A string representation.

Example

SELECT ST_GeoHash(ST_GeomFromText('POINT(21.427834 52.042576573)'), 5) AS geohash
u3r0p