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

    Function recoverNearest

    • Recover the nearest matching code to a specified location.

      Given a valid short Open Location Code this recovers the nearest matching full code to the specified location.

      Parameters

      • shortCode: string

        A valid short code.

      • referenceLatitude: number

        The latitude to use for the reference location.

      • referenceLongitude: number

        The longitude to use for the reference location.

      Returns string

      The nearest matching full code to the reference location.

      if the short code is not valid, or the reference position values are not numbers.