s2js is a Javascript port of the s2 spherical geometry library.
| github | npm | documentation | demo |
npm install s2js
The library is available as both ESM & CJS modules:
ESM
import { s2 } from 's2js'
CJS
const { s2 } = require('s2js')
CDN
<script type="module">
import { s2 } from 'https://esm.sh/s2js'
</script>
If you'd like to contribute a module please open an Issue to discuss.
© 2024 Peter Johnson <github:missinglink>
This source code is published under the Apache-2.0 license.