Skip to content

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

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