A Rust library for fetching gas pipeline infrastructure data and aggregating it into H3 inspired hexagonal grids.
This uses a British National Grid implementation of hexagonal grids.
- Fetches pipeline data By bounding box
- Converts pipeline geometries (LineStrings) into n3gb hexagon cells at a specified zoom
- Aggregates pipeline counts per hexagon as arrow batches
- Exports results as GeoParquet files (optional)
Example of this library being used in a Python application:
Set your Cadent API key:
export CADENT_API_KEY=your_api_key_here