import hashlib


def get_sha1_truncated_id(s: str) -> str:
    """
    Return a truncated hash of any given string. Used on bbox and bbox sections to keep track of duplicate runs / work
    without having to store the entire lon,lat,lon,lat string every time.
    """
    return hashlib.sha1(s.encode("UTF-8")).hexdigest()[:10]