You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The encoding function takes two floats (latitude and longitude), converts to integers and then does the encoding. Due to language, platform and/or os implementations, the initial conversion from float to integer can differ slightly.
To enable consistent tests, we want to make the integer encoding a separate function that can be called by the tests.
It should be called something like encodeIntegers, and take as arguments the latitude multiplied by 2.5e7 and longitude multiplied by 8.192e6 (the precision of the longest permissable codes).
This needs to be done for each implementation.
The text was updated successfully, but these errors were encountered:
The encoding function takes two floats (latitude and longitude), converts to integers and then does the encoding. Due to language, platform and/or os implementations, the initial conversion from float to integer can differ slightly.
To enable consistent tests, we want to make the integer encoding a separate function that can be called by the tests.
It should be called something like
encodeIntegers
, and take as arguments the latitude multiplied by 2.5e7 and longitude multiplied by 8.192e6 (the precision of the longest permissable codes).This needs to be done for each implementation.
The text was updated successfully, but these errors were encountered: