Skip to content
Code Recycle
Free · open sourceApache-2.0Unclaimed listing

s2geometry is by google — not by us.

We indexed this project so people can find it. We are not selling it, we host no copy of the code, and we are not affiliated with or endorsed by its authors — get it from them.

Indexed Sep 19, 2026 · 2,727 stars at index time. Maintainers: claiming verifies your identity and unlocks a higher assurance tier. Removal requests are honored.

Application · for humans & their agents

s2geometry

unclaimed listingactively maintainedFreeApache-2.0

Computational geometry and spatial indexing on the sphere

by Open Source Community · New publisher

Go to the project ↗Open live demo ↗

Every claim on this page is refundable if it is untrue — refund policy.

s2geometry.io/

google/s2geometry is an open-source project by google: Computational geometry and spatial indexing on the sphere. Indexed here so it can be found — not resold.

It is free. Get it from the upstream repository: https://github.com/google/s2geometry

From the project's own README (excerpt, reproduced for discovery under its Apache-2.0 license):

S2 Geometry Library

Overview

This is a package for manipulating geometric shapes. Unlike many geometry libraries, S2 is primarily designed to work with spherical geometry, i.e., shapes drawn on a sphere rather than on a planar 2D map. This makes it especially suitable for working with geographic data.

If you want to learn more about the library, start by reading the overview and quick start document, then read the introduction to the basic types.

S2 documentation can be found on s2geometry.io.

API/ABI Stability

Note that all releases are version 0.x, so there are no API or ABI stability guarantees. Starting with 1.0 we will adhere to SemVer and follow the Google OSS breaking change policy

The Python API is particularly unstable, and it is planned that the SWIGged API will be replaced by a pybind11 version with more Pythonic names and more complete functionality.

Requirements for End Users using Bazel

Build

This bazel build requires Bazel 8 or newer. Builds were tested using C++20 as set in .bazelrc. This setup relies on abseil-cpp and googletest from the bazel central repository as set in MODULE.bazel.

To build and test using bazel, from within s2geometry/src, run:

bazel test "//:"

To build the libary without testing, from within s2geometry/src, run:

bazel build //:s2

Status

All tests enumerated in the BUILD.bazel file pass on x86 machines. On Apple M1, s2loopmeasurestest fails due to a 6% excess accumlated error. This issue may require revision of boringssl or exactfloat.

Requirements for End Users using CMake

We aim to support all platforms supported by the Google foundational C++ support policy CMake >= 3.22 A C++ compiler with C++17 support, such as g++ >= 7.5 or clang >= 14.0.0 Abseil LTS 20260526 (standard library extensions). This…

Preview

See what it does before you commit. Previews show behavior, never source code.

01Capabilities

Does

  • No capabilities recorded

Doesn’t

  • No exclusions declared

02Requirements & stack

Depends on

No declared dependencies

Credentials needed

None declared

Stack

c++

03Community

No endorsements yet

No verified confirmations yet — be the first.

Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.

Open an issue

Sign in to confirm — weight comes from verified usage, not vote count.

Nobody has reported anything yet — a success counts as a report too.

04Trust Passport

Full passport →
–/100

0/0 automated components pass. An automated score is never a security guarantee.

This listing is unclaimed, so publisher identity cannot be verified and it stays below the “verified” tier by design — that is a statement about the listing, not about the project’s quality. Our automated scans still ran; a maintainer who claims it unlocks identity verification.

VersionChannelReleasedNotes
0.0.0stableSep 19, 2026Indexed listing — see the upstream repository for real release history.