geohash constant

Base32Codec const geohash

Codec instance to encode and decode 8-bit integer sequence to 5-bit Base-32 character sequence using the alphabet of Geohash's Base32:

0123456789bcdefghjkmnpqrstuvwxyz

This is used by the Geohash algorithm to represent latitude and longitude values in one (bit-interlaced) positive integer.

It is padded with =

Implementation

static const Base32Codec geohash = Base32Codec._(
  encoder: AlphabetEncoder(
    bits: 5,
    padding: _padding,
    alphabet: _base32EncodingGeoHash,
  ),
  decoder: AlphabetDecoder(
    bits: 5,
    padding: _padding,
    alphabet: _base32DecodingGeoHash,
  ),
);