Skip to content

Instantly share code, notes, and snippets.

@jkao
Last active September 9, 2019 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkao/9f34702cc90c35128b2b726f7c9f514b to your computer and use it in GitHub Desktop.
Save jkao/9f34702cc90c35128b2b726f7c9f514b to your computer and use it in GitHub Desktop.
Example of BigInt usage in the Radar S2 Cell lib
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