镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Clarify what codes can be shortened in the spec #586

Open

Description

@drinckes

(From #273 )

Review specification to clarify that all the following are permitted:

Should shortening of codes with only eight digits be allowed? E.g. 8FVC9G8F+
Should shortening of codes with six digits be allowed? E.g., 8FVC9G00+
Should shortening of codes with two or four digits be allowed? E.g., 8FVC0000+

I think we should also specify that padding after the plus e.g. +00G, is not permitted.

Activity

  1. deleted a comment from nilestimothy78 on Aug 2, 2024
  2. fulldecent commented on Dec 14, 2024

    @fulldecent
    Contributor

    Here is a draft implementable specification for shortening codes. It clearly answers these questions and provides a clear regex to see what is a short code. (Which is also a useful but not optimized Perl implementation of the isShort function).

    https://github.com/google/open-location-code/pull/463/files#diff-467a132a820489de16be4d53f7bd920eccd63b2bed5c986c95bd66064fa3d51cR100-R122

    And also at

    https://github.com/fulldecent/open-location-code/blob/new-spec/Documentation/Plus%20Codes%20Specification.md?plain=1#L106-L112


    And if you want a different spec, that may be useful just as a starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions