geojson2h3_plus 1.0.0+v4.2.1 copy "geojson2h3_plus: ^1.0.0+v4.2.1" to clipboard
geojson2h3_plus: ^1.0.0+v4.2.1 copied to clipboard

The geojson2h3_plus library includes a set of utilities for conversion between GeoJSON polygons and H3 hexagon indexes, using h3. Inspired by JS library geojson2h3.

geojson2h3_plus #

Build & Test codecov License: Apache 2.0

geojson2h3_plus is a Dart/Flutter library for converting between GeoJSON polygons and H3 hexagon indexes, using either:

Status & Roadmap #

This package is based on a handwritten implementation originally created by festelo, which included only two methods without using any JavaScript dependencies. This version simply updates that work to be compatible with the H3 v4 bindings—no new functionality has been added yet.

Future updates aim to implement the full set of features from Uber's original geojson2h3 JavaScript library, continuing the same Dart-first, dependency-free approach.

Example #

// h3_flutter_plus example
import 'package:h3_flutter_plus/h3_flutter_plus.dart';

final h3Factory = const H3Factory();
final h3 = h3Factory.load();
final geojson2h3 = Geojson2H3(h3);

final hexagon = BigInt.from(0x89283082837ffff);
final hexagonFeature = geojson2h3.h3ToFeature(hexagon);

Currently Supported Methods #

geojson2h3.h3ToFeature()
geojson2h3.h3SetToFeatureCollection()

More information on the original functionality can be found here: geojson2h3 by Uber


Notes #

  • This package is part of the H3 v4 Dart/Flutter bindings ecosystem maintained at codewithsam110g/h3_flutter_bindings.
  • It is a drop-in replacement for users of the older, unmaintained geojson2h3 Dart packages.

License #

This project is licensed under the Apache 2.0 License.

0
likes
150
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

The geojson2h3_plus library includes a set of utilities for conversion between GeoJSON polygons and H3 hexagon indexes, using h3. Inspired by JS library geojson2h3.

Repository (GitHub)
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

h3_common_plus

More

Packages that depend on geojson2h3_plus