ST_GEOGFROMGEOHASH
functionsupportedCore SQL functionsReturns 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
| Name | Required | Description |
|---|---|---|
geohash | required | The argument must be a geohash. |
precision | optional | The 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.