Last active
August 29, 2015 14:00
-
-
Save coreequip/e598ea1bf50cd436bade to your computer and use it in GitHub Desktop.
Simplified calculation of a Bing QuadKey - see https://msdn.microsoft.com/en-us/library/bb259689.aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Don't ask. | |
q=(parseInt((y).toString(2), 4) << 1 | parseInt((x).toString(2), 4)).toString(4); | |
// Z-Padding | |
(1<<z).toString(2).substr(1,z-q.length)+q; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment