Skip to main content

ST_GEOGPOINTFROMGEOHASH

Introduced or updated: v1.2.413

Returns a GEOGRAPHY object for the point that represents center of a geohash.

Syntax

ST_GEOGPOINTFROMGEOHASH(<geohash>)

Arguments

ArgumentsDescription
<geohash>The argument must be a geohash.

Return Type

Geography.

Examples

SELECT
ST_ASWKT(
ST_GEOGPOINTFROMGEOHASH(
's02equ0'
)
) AS pipeline_geography;

╭──────────────────────────────────────────────╮
│ pipeline_geography │
│ String │
├──────────────────────────────────────────────┤
POINT(1.0004425048828125 2.0001983642578125)
╰──────────────────────────────────────────────╯
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today