def _split(geohash, chars=None):
    """Splits an interleaved binary string into lon and lat arrays."""
    lon, lat = [], []
    for i, c in enumerate(geohash):
        if chars is not None and i >= chars:
            break
        lon.append(c) if i % 2 == 0 else lat.append(c)
    return lon, lat
