geojson2h3 0.6.1 geojson2h3: ^0.6.1 copied to clipboard
The geojson2h3 library includes a set of utilities for conversion between GeoJSON polygons and H3 hexagon indexes, using h3. Inspired by JS library geojson2h3.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add geojson2h3
With Flutter:
$ flutter pub add geojson2h3
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
geojson2h3: ^0.6.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:geojson2h3/geojson2h3.dart';