Proposed specification clarification

86 views
Skip to first unread message

Doug Rinckes

unread,
Apr 10, 2019, 4:25:59 AM4/10/19
to open-location-code EXTERNAL
Hello everyone,

On GitHub, Jon McPherson has raised an issue requesting clarification of the Open Location Code specification.

The question is, how should codes with fewer than 10 digits be handled by the shorten method?

"Shortening" a code works by using a reference location to work out what digits at the start of a code are unnecessary. For example, the code "8FVC9G8F+6W" can be shortened to just "9G8F+6W" using the location 47.26, 8.62.

But the spec is unclear on how codes with fewer than 10 digits, and specifically codes with padding zeros should be handled.

The questions are:
  1. Should shortening of codes with only eight digits be allowed? E.g. 8FVC9G8F+
  2. Should shortening of codes with six digits be allowed? E.g., 8FVC9G00+
  3. Should shortening of codes with two or four digits be allowed? E.g., 8FVC0000+
My feeling is that the answer to all of these should be yes, with the requirement that a shortened code always returns at least two significant digits. For example, 8FVC0000+, relative to the location 47.26, 8.62, is shortened to VC0000+.

This way, all codes are handled the same, regardless of the number of digits they possess.

If you have comments, please add them to the GitHub issue thread. If you don't have a GitHub account, reply here and I can forward them to the thread.

Let's give this a minimum of a week and see what the comments say.

Ngā mihi,
Doug Rinckes, Technical Program Manager, Google Switzerland GmbH; 9G8F+6W Zürich

Sukhvinder Singh Jhotti

unread,
Jun 26, 2019, 11:24:17 AM6/26/19
to Plus Codes Community Forum
The proposed way of generalized shortening sounds like a reasonable suggestion.
Reply all
Reply to author
Forward
0 new messages