12 releases

0.0.12 Jan 15, 2023
0.0.11 Dec 26, 2022
0.0.10 Feb 10, 2020
0.0.9 Jul 12, 2019
0.0.1 May 31, 2017

#14 in Geospatial

Download history 640/week @ 2022-11-26 241/week @ 2022-12-03 321/week @ 2022-12-10 178/week @ 2022-12-17 64/week @ 2022-12-24 458/week @ 2022-12-31 418/week @ 2023-01-07 617/week @ 2023-01-14 415/week @ 2023-01-21 169/week @ 2023-01-28 571/week @ 2023-02-04 640/week @ 2023-02-11 891/week @ 2023-02-18 568/week @ 2023-02-25 642/week @ 2023-03-04 472/week @ 2023-03-11

2,653 downloads per month
Used in location_based_sharding

Apache-2.0

590KB
10K 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

~2–2.7MB
~62K SLoC