Skip to main content
Create Geometry from geohash string and optional precision

Signatures

ST_GeomFromGeoHash(geohash: String, precision: Integer)

Parameters

geohash
String
required
A GeoHash string.
precision
Integer
required
The number of decimal places.

Return type

The resulting geometry.

Example

SELECT ST_GeomFromGeoHash('s00twy01mt', 4)
POLYGON ((0.703125 0.87890625, 0.703125 1.0546875, 1.0546875 1.0546875, 1.0546875 0.87890625, 0.703125 0.87890625))