@erikmichelson/open-location-code-ts
    Preparing search index...

    Function isValid

    • Determines if a code is valid.

      To be valid, all characters must be from the Open Location Code character set with at most one separator. The separator can be in any even-numbered position up to the eighth digit.

      Parameters

      • code: string

        The string to check.

      Returns boolean

      True if the string is a valid code.