13 releases

0.0.13 Oct 2, 2024
0.0.12 Jan 15, 2023
0.0.11 Dec 26, 2022
0.0.10 Feb 10, 2020
0.0.6 Jun 17, 2017

#36 in Geospatial

Download history 3275/week @ 2025-01-21 1012/week @ 2025-01-28 3067/week @ 2025-02-04 3849/week @ 2025-02-11 1211/week @ 2025-02-18 1764/week @ 2025-02-25 2368/week @ 2025-03-04 1020/week @ 2025-03-11 1905/week @ 2025-03-18 1433/week @ 2025-03-25 2327/week @ 2025-04-01 1379/week @ 2025-04-08 1518/week @ 2025-04-15 2792/week @ 2025-04-22 1329/week @ 2025-04-29 770/week @ 2025-05-06

7,181 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

655KB
12K SLoC

rust-s2

Rust port of Google S2 geometry library.

Build Status docs

Status of the Rust Library

This library is principally a port of the Golang S2 library, adapting to Rust idioms where it makes sense. We detail the progress of this port below relative to that Go library.

ℝ¹ - One-dimensional Cartesian coordinates

Full parity with Go.

ℝ² - Two-dimensional Cartesian coordinates

Full parity with Go.

ℝ³ - Three-dimensional Cartesian coordinates

Full parity with Go.

- Circular Geometry

Full parity with Go.

- Spherical Geometry

complete

  • Cell, CellID, LatLng, Metric, Point, Region, stuv

in progress

  • CellUnion, edgeutil, predicates, Rect

pending

  • loop, paddedcell, polygon, polyline, shapeindex

Dependencies

~1.9–2.7MB
~59K SLoC