{"adoption": {"forks": 355, "observed_at": "2026-08-28T04:07:12.085244+00:00", "stars": 2717}, "canonical_url": "https://ross.abutalabs.com/products/s2geometry", "card": {"archived": false, "artifact_type": "library", "description": "Computational geometry and spatial indexing on the sphere", "domain": ["databases", "developer-tools"], "enriched": true, "function": ["search-engine", "math", "geospatial"], "health_score": 98, "homepage": "http://s2geometry.io/", "language": "C++", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["google/s2geometry"], "name": "google/s2geometry", "platform": ["cpp", "python", "cross-platform"], "pushed_at": "2026-08-25T00:06:33+00:00", "repo": "google/s2geometry", "stars": 2717, "tags": ["spherical-geometry", "spatial-indexing", "s2-cells", "geospatial", "computational-geometry", "geographic-data", "maps", "algorithms", "linux", "macos"], "topics": ["geometry", "spherical-geometry", "s2", "spatial-indexing"], "urls": [], "use_cases": ["index billions of geographic points for fast nearby queries", "find all points within 100km of a target location", "compute intersections and unions of polygons on the Earth's surface", "build a worldwide geographic database with no seams or singularities", "approximate arbitrary regions as collections of discrete S2 cells for distributed spatial indexes", "test whether a point is contained within a polygon", "measure distances and compute centroids of geographic shapes"], "what_it_is": "S2 Geometry is a C++ library (with Python bindings) for computational geometry and spatial indexing on the sphere, representing geographic data on a 3D globe rather than flat map projections. It provides robust spatial indexes, constructive operations like intersection and union, and fast proximity queries over points, polylines, and polygons.", "when_to_avoid": ["you only need simple planar 2D geometry unrelated to the Earth's surface", "you need ellipsoidal (geodesic) precision, which is orders of magnitude slower", "you require a stable API or ABI - releases are 0.x with no stability guarantees", "you need first-class Windows support or a mature Pythonic API (the SWIG Python interface is unstable)"], "when_to_choose": ["you need robust spherical geometry instead of flat 2D map projections", "you are building large-scale geographic or spatial databases", "you need fast in-memory spatial indexing of points, polylines, and polygons", "you need globally consistent spatial indexing without projection distortion or dateline seams", "you want a battle-tested library used extensively on Google's geographic data"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/s2geometry", "repo": "google/s2geometry", "role": "main", "score": 84}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:12.085244+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:15:20.245122+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4b88f9fcc0f37f0d423f4ea94c02470f7b8f4f98a12b68c1de3e1ba0a22e8d5b", "fetched_at": "2026-08-28T04:07:12.085244+00:00", "kind": "readme", "missing": false, "url": "https://github.com/google/s2geometry"}, {"content_hash": "7d8e976fc2e7690cefa5d3da8cbff84fbbdb7f417e400f43b1ff443f6fc4521b", "fetched_at": "2026-08-29T09:58:20.885407+00:00", "kind": "homepage", "missing": false, "url": "http://s2geometry.io/"}, {"content_hash": "40d058e3da3d7f802f1d98a22ce79540de9efb6928054219625ffcab3502952f", "fetched_at": "2026-08-29T09:58:20.894582+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about"}, {"content_hash": "f6c4d6a6010a156550c6ffb66889dd87914188d5c402eebb4309c681807965ae", "fetched_at": "2026-08-29T09:58:20.896368+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/overview"}, {"content_hash": "8b19bccd8935bbe5676f0c134771e33cdbe944c9b6cc580da7bcf19e883ae309", "fetched_at": "2026-08-29T09:58:20.898610+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/devguide/cpp/quickstart"}, {"content_hash": "8cc57f337ed92ca967f8e91f1beb96d269f01505f46c970874cf96148284a2d6", "fetched_at": "2026-08-29T09:58:20.900703+00:00", "kind": "site_page", "missing": false, "url": "https://s2geometry.io/about/platforms"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 56}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3943, "days_push": 9, "days_rel": 132, "gap_med": 141, "n_releases_24m": 4}, "score": 84, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}