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

Signatures

ST_GeogFromGeoHash(geohash: String, precision: Integer)

Parameters

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

Return type

The computed result.

Example

SELECT ST_GeogFromGeoHash('9q9j8ue2v71y5zzy0s4q', 16)
POLYGON ((-122.3061 37.554162, -122.3061 37.554162, -122.3061 37.554162, -122.3061 37.554162, -122.3061 37.554162))"