tessl install tessl/pypi-h3@4.3.0Python bindings for H3, a hierarchical hexagonal geospatial indexing system
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.95x
Baseline
Agent success rate without this tile
88%
Utilities for building and inspecting directional links between neighboring hexagonal cells.
ValueError and yields no edges. @test@generates
from typing import List, Tuple
Cell = str
LatLng = Tuple[float, float]
Boundary = Tuple[LatLng, ...]
def build_directed_edges(origin: Cell, destinations: List[Cell]) -> List[str]:
"""Return directed edge identifiers from origin to each destination, validating adjacency and resolution consistency."""
def map_edge_endpoints(edges: List[str]) -> List[Tuple[Cell, Cell]]:
"""Return origin/destination tuples for each edge in input order."""
def edge_boundaries(edges: List[str]) -> List[Boundary]:
"""Return boundary coordinate tuples per edge, ordered from origin toward destination."""Provides directed-edge construction, adjacency checks, endpoint extraction, and boundary coordinates for hexagonal cells.