Skip to main content

ST_GEOGFROMGEOHASH

Introduced or updated: v1.2.402

Returns a GEOGRAPHY object for the polygon that represents the boundaries of a geohash.

Syntax

ST_GEOGFROMGEOHASH(<geohash>)

Arguments

ArgumentsDescription
<geohash>The argument must be a geohash.

Return Type

Geography.

Examples

SELECT
ST_ASWKT(
ST_GEOGFROMGEOHASH(
'9q60y60rhs'
)
) AS pipeline_geography;

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ pipeline_geography │
│ String │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
POLYGON((-120.66229462623596 35.30029535293579,-120.66229462623596 35.30030071735382,-120.66230535507202 35.30030071735382,-120.66230535507202 35.30029535293579… │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
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