ST_GEOMFROMGEOHASH

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns a GEOMETRY object for the polygon that represents the boundaries of a geohash. The number of characters in a geohash determines precision. Removing characters from the end of a geohash results in a geohash that is less precise and that identifies a larger rectangular area. The optional precision argument specifies the precision to use for the input geohash. For example, passing 5 for precision specifies that the function uses the first 5 characters of the input geohash.

Syntax

supportedpartialnot supportednot scored

ST_GEOMFROMGEOHASH( <geohash> [, <precision> ] )

Parameters

NameRequiredDescription
geohashrequiredThe argument must be a geohash.
precisionoptionalThe number of characters to use in the geohash. You can specify a value from 1 to 20. By default, precision is 20, which produces a geohash that is 20 characters long.

Returns

Returns a value of type GEOMETRY.

See also

Referenced by