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

StringIndexOutOfBoundsException while decoding valid zone codes #19

Open
FridoDeluxe opened this issue Jan 28, 2017 · 0 comments
Open

Comments

@FridoDeluxe
Copy link

A StringIndexOutOfBoundsException is raised for a few zone codes that are processed by GeoHex.decode(). The following code reproduces this issue:

String code = GeoHex.encode(-82.6, -58.7, 0); // resulting code is 'Bc'
Zone zone = GeoHex.decode(code);

This problem appears only for zones around the north and south pole (in different levels of precision).

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

No branches or pull requests

1 participant