{"_id":"s2-geometry","_rev":"397232","name":"s2-geometry","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","dist-tags":{"latest":"1.2.10"},"maintainers":[{"name":"coolaj86","email":""}],"time":{"modified":"2021-08-04T04:18:04.000Z","created":"2016-07-26T04:45:02.767Z","1.2.10":"2018-04-10T15:57:49.165Z","1.2.9":"2016-08-18T05:35:43.827Z","1.2.8":"2016-08-16T19:19:40.836Z","1.2.7":"2016-08-03T23:44:19.872Z","1.2.6":"2016-08-03T06:34:13.635Z","1.2.4":"2016-07-30T15:07:16.989Z","1.2.3":"2016-07-30T04:52:29.540Z","1.2.2":"2016-07-30T04:50:42.760Z","1.2.1":"2016-07-28T09:07:18.020Z","1.2.0":"2016-07-28T06:26:39.162Z","1.1.1":"2016-07-28T04:38:49.808Z","1.1.0":"2016-07-28T00:47:05.152Z","1.0.0":"2016-07-26T04:45:02.767Z"},"users":{"appastair":true,"detj":true,"shanewholloway":true},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"repository":{"type":"git","url":"git+https://git.coolaj86.com/coolaj86/s2-geometry.js.git"},"versions":{"1.2.10":{"name":"s2-geometry","version":"1.2.10","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://git.coolaj86.com/coolaj86/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT or Apache-2 or ISC)","bugs":{"url":"https://git.coolaj86.com/coolaj86/s2-geometry.js/issues"},"homepage":"https://git.coolaj86.com/coolaj86/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"7a10f5b562cbe8734d00f317c1c7c80db46a4caa","_id":"s2-geometry@1.2.10","_shasum":"c6ff22f3eccafd0eea491b60b44c141b9887acab","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"shasum":"c6ff22f3eccafd0eea491b60b44c141b9887acab","size":22621,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.10.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s2-geometry_1.2.10_1523375869070_0.8793161041761386"},"_hasShrinkwrap":false,"publish_time":1523375869165,"_cnpm_publish_time":1523375869165},"1.2.9":{"name":"s2-geometry","version":"1.2.9","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/Daplie/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"aj@daplie.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/Daplie/s2-geometry.js/issues"},"homepage":"https://github.com/Daplie/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"df6d38b5adac54043967e0890aebaed32cf0d0e0","_id":"s2-geometry@1.2.9","_shasum":"20c2eadc621322c0f5ebc5098fa614525031f1e4","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"20c2eadc621322c0f5ebc5098fa614525031f1e4","size":22924,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.9.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.9.tgz_1471498541758_0.023142577847465873"},"directories":{},"publish_time":1471498543827,"_cnpm_publish_time":1471498543827,"_hasShrinkwrap":false},"1.2.8":{"name":"s2-geometry","version":"1.2.8","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/Daplie/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"aj@daplie.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/Daplie/s2-geometry.js/issues"},"homepage":"https://github.com/Daplie/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"0cc25036e53601165fe0cd589ebadb52480b352d","_id":"s2-geometry@1.2.8","_shasum":"469048e64055bf9249d01069fd190ed97e76bc5f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"469048e64055bf9249d01069fd190ed97e76bc5f","size":21731,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.8.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.8.tgz_1471375178194_0.3757386615034193"},"directories":{},"publish_time":1471375180836,"_cnpm_publish_time":1471375180836,"_hasShrinkwrap":false},"1.2.7":{"name":"s2-geometry","version":"1.2.7","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/Daplie/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"aj@daplie.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/Daplie/s2-geometry.js/issues"},"homepage":"https://github.com/Daplie/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"1a9c95e2c65fe65b6f6ee34e0bbc3df81e978871","_id":"s2-geometry@1.2.7","_shasum":"7828d8a9485891f7f7c2d33315c37c656c5d3f52","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"7828d8a9485891f7f7c2d33315c37c656c5d3f52","size":21662,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.7.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.7.tgz_1470267859631_0.9801479373127222"},"directories":{},"publish_time":1470267859872,"_cnpm_publish_time":1470267859872,"_hasShrinkwrap":false},"1.2.6":{"name":"s2-geometry","version":"1.2.6","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/Daplie/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"aj@daplie.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/Daplie/s2-geometry.js/issues"},"homepage":"https://github.com/Daplie/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"197e07a605ebb378b31c0851d6e3a450c89d04ac","_id":"s2-geometry@1.2.6","_shasum":"9ef335cbfe9b3d34e03fa93ff0563b4d961e06f5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"9ef335cbfe9b3d34e03fa93ff0563b4d961e06f5","size":20206,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.6.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.6.tgz_1470206051490_0.9369982518255711"},"directories":{},"publish_time":1470206053635,"_cnpm_publish_time":1470206053635,"_hasShrinkwrap":false},"1.2.4":{"name":"s2-geometry","version":"1.2.4","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/Daplie/s2-geometry.js.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"aj@daplie.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/Daplie/s2-geometry.js/issues"},"homepage":"https://github.com/Daplie/s2-geometry.js#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"e04b0b0ecd42bfba74b47e43c6cfa362538ec73d","_id":"s2-geometry@1.2.4","_shasum":"87a4a23ef4ac84abacc49a11a1a404380c5d4d0a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"87a4a23ef4ac84abacc49a11a1a404380c5d4d0a","size":10065,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.4.tgz_1469891234978_0.9043051039334387"},"directories":{},"publish_time":1469891236989,"_cnpm_publish_time":1469891236989,"_hasShrinkwrap":false},"1.2.3":{"name":"s2-geometry","version":"1.2.3","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"4a7b8819c9522e88c7a66b32da1c494034bf453b","_id":"s2-geometry@1.2.3","_shasum":"17875c712dba0d889255d33ddb619eee939407d8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"17875c712dba0d889255d33ddb619eee939407d8","size":10060,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.3.tgz_1469854346583_0.5052181910723448"},"directories":{},"publish_time":1469854349540,"_cnpm_publish_time":1469854349540,"_hasShrinkwrap":false},"1.2.2":{"name":"s2-geometry","version":"1.2.2","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"c0c80ca0f8597d3056bddc2817b7d8c651ffcfd6","_id":"s2-geometry@1.2.2","_shasum":"20e32d33b81d6f655161342b2fda0f2b1ac09af9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"20e32d33b81d6f655161342b2fda0f2b1ac09af9","size":10061,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.2.tgz_1469854241157_0.5735540690366179"},"directories":{},"publish_time":1469854242760,"_cnpm_publish_time":1469854242760,"_hasShrinkwrap":false},"1.2.1":{"name":"s2-geometry","version":"1.2.1","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"d344d816115a9eb0002390b8a5cc0dc27e485bb0","_id":"s2-geometry@1.2.1","_shasum":"066b3a7468625ed503d0e3608d918e6dffbfd45b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"066b3a7468625ed503d0e3608d918e6dffbfd45b","size":8318,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.1.tgz_1469696836269_0.7769382782280445"},"directories":{},"publish_time":1469696838020,"_cnpm_publish_time":1469696838020,"_hasShrinkwrap":false},"1.2.0":{"name":"s2-geometry","version":"1.2.0","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"e3619d963a7ec9db301719d8890a759654a0eba2","_id":"s2-geometry@1.2.0","_shasum":"56a002f19ab4a1bed8d3e9cd0c3912950e4ed6a5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"56a002f19ab4a1bed8d3e9cd0c3912950e4ed6a5","size":8226,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s2-geometry-1.2.0.tgz_1469687197419_0.5202028069179505"},"directories":{},"publish_time":1469687199162,"_cnpm_publish_time":1469687199162,"_hasShrinkwrap":false},"1.1.1":{"name":"s2-geometry","version":"1.1.1","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"7ca690db1449883dad534021ce2111d6e8f659ff","_id":"s2-geometry@1.1.1","_shasum":"13095dce33116b6aad9025e5e983cf1763b91933","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"13095dce33116b6aad9025e5e983cf1763b91933","size":7217,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/s2-geometry-1.1.1.tgz_1469680727282_0.2158832128625363"},"directories":{},"publish_time":1469680729808,"_cnpm_publish_time":1469680729808,"_hasShrinkwrap":false},"1.1.0":{"name":"s2-geometry","version":"1.1.0","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/latlng2cell.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","dependencies":{"long":"^3.2.0"},"contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"0d828b28b0822e21a1e1b5e12429998c84b4aebc","_id":"s2-geometry@1.1.0","_shasum":"d7dd450f30b0a065495bf949d6ca9ff96b1d0141","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"d7dd450f30b0a065495bf949d6ca9ff96b1d0141","size":5917,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/s2-geometry-1.1.0.tgz_1469666822593_0.36179430200718343"},"directories":{},"publish_time":1469666825152,"_cnpm_publish_time":1469666825152,"_hasShrinkwrap":false},"1.0.0":{"name":"s2-geometry","version":"1.0.0","description":"A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)","main":"src/s2geometry.js","scripts":{"test":"node tests/cellid.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/s2-geometry-javascript.git"},"keywords":["s2","geometry","s2geometry","Niantic","Ingress","Pokemon","GO","PokemonGO","cellid","s2cell","s2cellid","latitude","longitude","lat","lng"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"ISC","bugs":{"url":"https://github.com/coolaj86/s2-geometry-javascript/issues"},"homepage":"https://github.com/coolaj86/s2-geometry-javascript#readme","contributors":[{"name":"Jon Atkins","email":"github@jonatkins.com","url":"http://www.jonatkins.com/"},{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com"}],"gitHead":"74149b89cb5163f06dc6b3ae0821295cdbfa62ff","_id":"s2-geometry@1.0.0","_shasum":"b780c5206c8a466faf7185d042dd3c5a43165bfe","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"b780c5206c8a466faf7185d042dd3c5a43165bfe","size":4729,"noattachment":false,"key":"/s2-geometry/-/s2-geometry-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/s2-geometry/download/s2-geometry-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/s2-geometry-1.0.0.tgz_1469508300567_0.6706488099880517"},"directories":{},"publish_time":1469508302767,"_cnpm_publish_time":1469508302767,"_hasShrinkwrap":false}},"readme":"s2-geometry (JavaScript/ES5.1)\n======================\n\n| Sponsored by [ppl](https://ppl.family)\n\nA pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (as used by **Ingress**, **Pokemon GO**)\n\nCurrently contains basic support for S2Cell\n\n<table>\n<tr>\n<td></td>\n<td>\nFace 2\n<br>\nOrientation A\n\n<a href=\"http://i.imgur.com/SODO4bT.jpg\" target=\"_face2\"><img src=\"http://i.imgur.com/SODO4bTt.jpg\" title=\"Face 2\" alt=\"Face 2\"></a>\n\n<br>\nThe North Pole<br>(and Canada / Europe)\n</td>\n<td></td>\n</tr>\n<tr>\n<td>\nFace 0\n<br>\nOrientation A\n\n<a href=\"http://i.imgur.com/dLI5Zd1.jpg\" target=\"_face0\"><img src=\"http://i.imgur.com/dLI5Zd1t.jpg\" title=\"Face 0\" alt=\"Face 0\"></a>\n\n<br>\nAfrica\n</td>\n<td>\nFace 1\n<br>\nOrientation D\n\n<a href=\"http://i.imgur.com/duTLDTV.jpg\" target=\"_face1\"><img src=\"http://i.imgur.com/duTLDTVt.jpg\" title=\"Face 1\" alt=\"Face 1\"></a>\n\n<br>\nAsia\n</td>\n<td>\nFace 3\n<br>\nOrientation D\n\n<a href=\"http://i.imgur.com/6Ho35Tc.jpg\" target=\"_face3\"><img src=\"http://i.imgur.com/6Ho35Tct.jpg\" title=\"Face 3\" alt=\"Face 3\"></a>\n\n<br>\nNothing<br>(and Australia)\n</td>\n<td>\nFace 4\n<br>\nOrientation A\n\n<a href=\"http://i.imgur.com/3IBAfqj.jpg\" target=\"_face4\"><img src=\"http://i.imgur.com/3IBAfqjt.jpg\" title=\"Face 4\" alt=\"Face 4\"></a>\n\n<br>\nThe Americas<br>(and Provo, UT)\n</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td>\nFace 5\n<br>\nOrientation D\n\n<a href=\"http://i.imgur.com/HZCBvgy.jpg\" target=\"_face5\"><img src=\"http://i.imgur.com/HZCBvgyt.jpg\" title=\"Face 5\" alt=\"Face 5\"></a>\n\n<br>\nAntarctica\n</td>\n</tr>\n</table>\n\nWhere is this being used?\n---------------------\n\n* [pokemap-webapp](https://github.com/Daplie/pokemap-webapp)\n* [node-pokemap](https://github.com/Daplie/node-pokemap)\n* [Pokemon-GO-node-api](https://github.com/Daplie/Pokemon-GO-node-api)\n\nSimple Examples\n---------------\n\n```javascript\n'use strict';\n\nvar S2 = require('s2-geometry').S2;\n\nvar lat = 40.2574448;\nvar lng = -111.7089464;\nvar level = 15;\n\n\n\n//\n// Convert from Lat / Lng\n//\nvar key = S2.latLngToKey(lat, lng, level);\n// '4/032212303102210'\n\n\n\n//\n// Convert between Hilbert Curve Quadtree Key and S2 Cell Id\n//\nvar id = S2.keyToId(key);\n// '9749618446378729472'\n\nvar key = S2.idToKey(id);\n// '9749618446378729472'\n\n\n//\n// Convert between Quadkey and Id\n//\nvar latlng = S2.keyToLatLng(key);\nvar latlng = S2.idToLatLng(id);\n\n\n\n//\n// Neighbors\n//\nvar neighbors = S2.latLngToNeighborKeys(lat, lng, level);\n// [ keyLeft, keyDown, keyRight, keyUp ]\n\n\n\n//\n// Previous, Next, and Step\n//\nvar nextKey = S2.nextKey(key);\nvar prevKey = S2.prevKey(key);\n\nvar backTenKeys = S2.stepKey(key, -10);\n```\n\nPrevious and Next\n-----------------\n\nYou can get the previous and next S2CellId from any given Key:\n\n1. Convert from Lat/Lng to Key (Face and Hilbert Curve Quadtree)\n2. Get the Previous or Next Key\n3. Convert the Key to an Id (uint64 string)\n\n```javascript\nvar key = S2.latLngToKey(40.2574448, -111.7089464, 15);   // '4/032212303102210'\nvar id = S2.keyToId(key);                                 // '9749618446378729472'\n\nvar nextKey = S2.nextKey(key);\nvar nextId = S2.keyToId(nextKey);\n\nvar prevKey = S2.prevKey(key);\nvar prevId = S2.keyToId(prevKey);\n\nvar backTenKeys = S2.stepKey(key, -10);\n\n// See it\nconsole.log(prevKey);                                 // '4/032212303102203'\nconsole.log(key);                                     // '4/032212303102210'\nconsole.log(nextKey);                                 // '4/032212303102211'\nconsole.log(nextId);\n```\n\nconvert Cell Id to Hilbert Curve Quad Tree\n------------------\n\nConvert from base 10 (decimal) `S2 Cell Id` to base 4 `quadkey` (aka hilbert curve quadtree id)\n\nExample '4/032212303102210' becomes '9749618446378729472'\n\n```javascript\n'use strict';\n\nvar quadkey = '4/032212303102210'\nvar parts = quadkey.split('/');\nvar face = parts[0];                  // 4\nvar position = parts[1];              // '032212303102210';\nvar level = '032212303102210'.length; // 15\n\nvar cellId = S2.facePosLevelToId(face, position, level);\n\nconsole.log(cellId);\n```\n\nConvert from hilbert quadtree id to s2 cell id:\n\nExample '9749618446378729472' becomes '4/032212303102210'\n\n```javascript\n'use strict';\n\nvar cellId = '9749618446378729472';\n\nvar hilbertQuadkey = S2.idToKey(cellId);\n\nconsole.log(hilbertQuadkey);\n```\n\nConvert Key and Id to LatLng\n---------------------\n\n```javascript\nvar latlng = S2.keyToLatLng('4/032212303102210');\n\nvar latlng = S2.idToLatLng('9749618446378729472');\n```\n","_attachments":{},"homepage":"https://git.coolaj86.com/coolaj86/s2-geometry.js#readme","bugs":{"url":"https://git.coolaj86.com/coolaj86/s2-geometry.js/issues"},"license":"(MIT or Apache-2 or ISC)"}