armi_s2geometry 0.0.1 armi_s2geometry: ^0.0.1 copied to clipboard
Flutter package for S2Geometry, a spherical geometry library for geographic applications, credits to dart-s2geometry. This package is a fork of the original dart-s2geometry package, with some modifica [...]
S2 Geometry for Dart #
Dart port of the C++ s2geometry and Go geo libraries.
Usage #
A simple usage example:
import 'package:armi_s2geometry/armi_s2geometry.dart';
main() {
S2LatLng latLng = new S2LatLng.fromDegrees(10.4883764, -73.2721948);
S2CellId cellId = new S2CellId.fromLatLng(latLng).parent(14);
print(cellId.toToken());
}
Notes #
This library depends on int
being a 64 bit signed integer, and thus may not work under JavaScript targets.
Features and bugs #
Please file feature requests and bugs at the [issue tracker][tracker].