Esempio n. 1
0
def h3s_to_h3d(s: str) -> int:
    """
    Returns h3 distilled from the h3 hex index

    :param s: h3 hex (str) representation as returned by the h3.geo_to_h3()
    :returns: h3 distilled numeric (int) representation
    """
    return h3h_to_h3d(h3.string_to_h3(s))
Esempio n. 2
0
def h3_to_placekey(h3_string):
    """
    Convert an H3 hexadecimal string into a Placekey string.

    :param h3_string: H3 (string)
    :return: Placekey (string)

    """
    return _encode_h3_int(h3.string_to_h3(h3_string))
Esempio n. 3
0
def test_str_int_convert():
    s = '8928308280fffff'
    i = h3.string_to_h3(s)

    assert h3.h3_to_string(i) == s