Skip to content

Commit 1a85a5c

Browse files
benjamin-cooper-aiBenjamin Cooper
andauthored
feat(s2): Implement S2CellIndex and S2ClosestCellQuery (#2)
Authored by Benjamin Cooper --------- Co-authored-by: Benjamin Cooper <benc@Benjamins-MacBook-Pro.local>
1 parent 63fc4c6 commit 1a85a5c

File tree

8 files changed

+4062
-11
lines changed

8 files changed

+4062
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@ const { s2 } = require('s2js')
3838

3939
s2js is a full-featured JavaScript/TypeScript port of Google's S2 Geometry library. It supports:
4040

41-
| Feature | Supported? | Notes |
42-
|----------------------------------|:---------:|:------|
43-
| **CellId, Cell** || Encoding, decoding, neighbors |
44-
| **Point, LatLng** || Spherical & Planar projections |
45-
| **Loop, Polygon** || Polygons, potentially with holes |
46-
| **Polyline** || Represents linear paths |
47-
| **RegionCoverer** || Cover regions (loops, polys) with S2 cells |
48-
| **GeoJSON <> S2 conversions** || Supports all GeoJSON geometry types |
49-
| **Polygon contains/intersects** || Point-in-polygon & shape intersection |
50-
| **Union, Intersection, Difference** || Basic boolean polygon operations |
51-
| **BigInt cell/token conversion** || Handles full 64-bit cell IDs |
41+
| Feature | Supported? | Notes |
42+
| ----------------------------------- | :--------: | :----------------------------------------- |
43+
| **CellId, Cell** || Encoding, decoding, neighbors |
44+
| **Point, LatLng** || Spherical & Planar projections |
45+
| **Loop, Polygon** || Polygons, potentially with holes |
46+
| **Polyline** || Represents linear paths |
47+
| **RegionCoverer** || Cover regions (loops, polys) with S2 cells |
48+
| **GeoJSON <> S2 conversions** || Supports all GeoJSON geometry types |
49+
| **Polygon contains/intersects** || Point-in-polygon & shape intersection |
50+
| **Union, Intersection, Difference** || Basic boolean polygon operations |
51+
| **BigInt cell/token conversion** || Handles full 64-bit cell IDs |
52+
| **CellIndex, ClosestCellQuery** || Query a list of cells with various shapes |
53+
54+
55+
TODO: ADD CLOSESTEDGEQUERY HERE
5256

5357
### Feature Completeness
5458

0 commit comments

Comments
 (0)