s2-index

0.0.0 • Public • Published

s2-index

Build Status

Abstractions over s2 to provide indexing support for databases.

install

npm install --save s2-index

example

var s2index = require('s2-index');
 
s2index.point([0, 0], 0, 10).forEach(function(idx) {
    // insert into database with idx as key
});

api

point(coords, min, max)

Index a point from min to max S2 Cell levels.

polygon(coords, options)

Index a polygon with options, same as in s2.

Readme

Keywords

Package Sidebar

Install

npm i s2-index

Weekly Downloads

3

Version

0.0.0

License

ISC

Last publish

Collaborators

  • tmcw