Skip to main content

geohash-decoder

GeohashDecoder

From-v4.0

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