@math.gl/dggs/geohash
The GeoHash functions in math.gl are currently focused on decoding Geohash encoded data, not encoding it.
GeohashDecoder​
GeohashDecoder implements the DGGSDecoder API:
cellColumnNames: ['geohash', 'geohashId', 'geohash_id']cellToLngLat(cell: string): [number, number]cellToBoundary(cell: string): [number, number][]cellToBoundaryFlat(cell: string): number[]cellToBounds(cell: string): Bounds2D