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

GEOHASH_ENCODE



Converts a pair of latitude and longitude coordinates into a Geohash-encoded string.

Syntax

GEOHASH_ENCODE(lon, lat)

Examples

SELECT GEOHASH_ENCODE(-5.60302734375, 42.593994140625); ┌────────────────────────────────────────────────────┐ │ geohash_encode((- 5.60302734375), 42.593994140625) │ ├────────────────────────────────────────────────────┤ │ ezs42d000000 │ └────────────────────────────────────────────────────┘

Was this page helpful?