3m x 3m and 1m x 1m resolution

99 views
Skip to first unread message

Johnny Walker

unread,
May 26, 2019, 11:52:02 PM5/26/19
to Plus Codes Community Forum
Hi, I would like to get down to 3m x 3m and possibly 1m x 1m resolution.

I have looked at the openlocationcode.py python code and have changed PAIR_CODE_LENGTH_ to 11 but this is giving me errors, as longitudinal values are of the order of 1000 when decoding back.

I have played with modifying other parameters, but can't get this to work.

Is it also possible to go less than 3m x 3m i.e. 1m x 1m? I really need this capability. If not, are there other options/solutions available?

Thanks for any help

J

Zongwei Li

unread,
May 27, 2019, 12:39:22 AM5/27/19
to Johnny Walker, Plus Codes Community Forum
Hey Johnny,

No need to modify the internals of the library. Simply pass the number of digits you want to encode(), e.g. encode(47.365590, 8.524997, 11).

You can create longer plus codes to get even more precision. 12-digit codes will be roughly 55x86cm. 13-digit codes will be roughly 11x21cm. The libraries will create plus codes up to 15 digits precision.



--
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
---
You received this message because you are subscribed to the Google Groups "Plus Codes Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-location-c...@googlegroups.com.
To post to this group, send email to open-loca...@googlegroups.com.
Visit this group at https://groups.google.com/group/open-location-code.
To view this discussion on the web, visit https://groups.google.com/d/msgid/open-location-code/c558fdb9-345d-4120-ac2e-9425bde62392%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johnny Walker

unread,
May 29, 2019, 1:27:07 AM5/29/19
to Plus Codes Community Forum
Thanks Zongwei,

I don't know how I could have overlooked that input parameter! It works great now. Thanks!

Reply all
Reply to author
Forward
0 new messages