MCPcopy Index your code
hub / github.com/HydroniumLabs/h3o

github.com/HydroniumLabs/h3o @v0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
973 symbols 2,780 edges 232 files 222 documented · 23%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

h3o

Crates.io Docs.rs CI Status Coverage License

Rust implementation of the H3 geospatial indexing system.

Design

This is not a binding of the reference implementation, but a reimplementation from scratch.

The goals are: - To be safer/harder to misuse by leveraging the strong typing of Rust. - To be 100% Rust (no C deps): painless compilation to WASM, easier LTO, … - To be as fast (or even faster when possible) than the reference library.

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install h3o

Usage

use h3o::{LatLng, Resolution};

let coord = LatLng::new(37.769377, -122.388903).expect("valid coord");
let cell = coord.to_cell(Resolution::Nine);

Why this name?

Rust is an iron oxide. A Rust version of H3 is an H3 oxide, in other word $H_3O$ (a.k.a hydronium). Chemically speaking this is wrong ( $H_3O$ is produced by protonation of $H_2O$, not oxidation of $H_3$), but ¯\(ツ)

License

BSD 3-Clause

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 583
Method 318
Class 60
Enum 11
Interface 1

Languages

Rust100%

Modules by API surface

src/index/cell.rs66 symbols
tests/h3/h3api.rs64 symbols
src/geom/tiler.rs37 symbols
tests/api/geom/tiler.rs32 symbols
tests/api/geom/solvent.rs30 symbols
tests/api/cell_index.rs26 symbols
src/resolution.rs23 symbols
src/coord/latlng.rs23 symbols
src/coord/ijk.rs21 symbols
src/index/edge.rs20 symbols
src/geom/solvent/arc_set_tests.rs19 symbols
src/index/bits.rs18 symbols

For agents

$ claude mcp add h3o \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page