Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify algorithm for digit 11 and beyond #580

Open
jidanni opened this issue Apr 14, 2024 · 2 comments
Open

Specify algorithm for digit 11 and beyond #580

jidanni opened this issue Apr 14, 2024 · 2 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Apr 14, 2024

https://github.com/google/open-location-code/blob/main/docs/specification.md#code-precision mentions non-square areas starting at digit 11.

https://github.com/google/open-location-code/blob/main/docs/olc_definition.adoc also says

From 11 digits on, a different algorithm is used. The areas are slightly larger but the advantage is that the codes are shorter.

Alas, neither documents give any algorithm. Even what digit goes into what box is never explained.

@bocops
Copy link
Contributor

bocops commented Apr 17, 2024

The algorithm you are looking for is described in the Least significant five digits sections of the document.

@jidanni
Copy link
Contributor Author

jidanni commented Apr 17, 2024

I see. It looked like two separate algorithms that one could choose from.

P.S., in addition to the English description, it would help a lot to see code samples. Else it is rather hard to be sure one is reading it OK.

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

No branches or pull requests

3 participants