📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

ST_GEOGPOINTFROMGEOHASH



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) │ ╰──────────────────────────────────────────────╯

Was this page helpful?