Closed bocops closed 2 years ago
Note: #373 should probably NOT be closed by this, as there might be other implementations that still need to be fixed.
Please add a couple test cases to https://github.com/google/open-location-code/blob/main/test_data/encoding.csv -- it currently has test cases for ">=180", but nothing for ">360" or "<-360". Thank you!
Change normalizeLongitude to remove loops. Returned value is a normalized longitude in range [-180;+180[
I'm not sure how much commenting the final line really needs, so please advise.
If accepted, this fixes https://github.com/google/open-location-code/issues/373 for the Java implementation.