snowflake.snowpark.functions.st_geohash¶
- snowflake.snowpark.functions.st_geohash(geography_or_geometry_expression: Union[snowflake.snowpark.column.Column, str], precision: Union[snowflake.snowpark.column.Column, str] = None)[source]¶
Returns the geohash for a GEOGRAPHY or GEOMETRY object.
- Parameters:
geography_or_geometry_expression (ColumnOrName) – A GEOGRAPHY or GEOMETRY object for which to calculate the geohash
precision (ColumnOrName, optional) – The precision of the geohash. If not specified, uses the default precision
- Returns:
A string representing the geohash of the input geography or geometry object
- Return type:
- Examples::