ST_GEOGFROMGEOHASH

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functionsConversion functions

Returns a GEOGRAPHY object for the polygon that represents the boundaries of a geohash. The optional precision argument specifies the precision to use for the input geohash. For example, passing 5 for precision specifies that the function should use the first 5 characters of the input geohash.

Syntax

supportedpartialnot supportednot scored

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

Parameters

NameRequiredDescription
geohashrequiredThe argument must be a geohash.
precisionoptionalThe number of characters to use from the input geohash. For example, passing 5 for precision causes the function to use the first 5 characters in the geohash. You can specify a value from 1 to 20. By default, precision is 20, which causes the function to use up to the first 20 characters of the geohash.

Returns

The function returns a value of type GEOGRAPHY.

See also

Referenced by