-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add option to base4 #30
Comments
Sounds good to me. Could you please send a pull request for this? Also I suggest to create a new function like |
Hi @sunng87 , thanks (!). Another issue to the encodeBase4 and this option in the encode parametrization: "auto precision" and default As base4 digits are 2 bits length and base32 digits are 5 bits, the factor is 5/2=2.5 ... |
Hi @ppKrauss , while |
Ok, but is important to reuse code.. The parameter |
The structure of the Geohash is a base4 hierarchy: powers of 4 in the spatial representation (grid cell divided into 4 cels each iteration).
In applications that need to access "the full hierarchy", is important to use base4 (2 bits). In the Javascript code is only a inclusion of one parameter in the Encode method:
The text was updated successfully, but these errors were encountered: