geohash-decoder
GeohashDecoder
caution
This module is still experimental. It may have issues and functionality may change in minor releases.
The GeoHash functions in math.gl are currently focused on decoding Geohash encoded data, not encoding it.
Decoder
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