Is there any alternative to Google's S2 geometry library? It looks it was updated 4 years back and hardly any documentation.

I need a library to divide cities into zones of the area I need. S2 looks good solution, but its documentation is very poor. I have even no clue how to use it. I am looking at its Java library which will be compatible with the project I am doing.

If no alternative, any pointers how to start on S2? Like, how do I create cells with IDs of the resolution I need? How do I use them to search for the proximity given a point??

  • 1
    Would look at D3.js jasondavies.com/maps/rotate S2 is deprecated by google. – Mapperz May 19 '15 at 2:12
  • @Mapperz Although there is no active development on S2 by, the library is far from dead. MongoDB (database), Foursquare are few larger companies that confirmed to use S2. – TheHippo Nov 3 '15 at 10:42

I have recently written a tutorial about the S2 and I think that the S2 is what you really need. I have made the same you need in the tutorial so I won't repeat the code here.

  • Thanks a lot. I will go through this and get back to you on your blog. – Spiralarchitect Aug 16 '15 at 7:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.