Last active
September 9, 2019 16:15
-
-
Save jkao/9f34702cc90c35128b2b726f7c9f514b to your computer and use it in GitHub Desktop.
Example of BigInt usage in the Radar S2 Cell lib
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
const s2 = require('@radarlabs/s2'); | |
// an arbitrary point in the East Village in New York City | |
const cell = s2.CellId.fromToken('89c25977e5d62c4b') | |
console.log(cell.id()); // -> 9926594900169993291n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment