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

ST_GEOMPOINTFROMGEOHASH



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

Syntax

ST_GEOMPOINTFROMGEOHASH(<geohash>)

Arguments

ArgumentsDescription
<geohash>The argument must be a geohash.

Return Type

Geometry.

Examples

SELECT ST_GEOMPOINTFROMGEOHASH( 's02equ0' ) AS pipeline_geometry; ┌──────────────────────────────────────────────┐ │ pipeline_geometry │ │ Geometry │ ├──────────────────────────────────────────────┤ │ POINT(1.0004425048828125 2.0001983642578125) │ └──────────────────────────────────────────────┘

Was this page helpful?