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