armi_s2geometry 0.0.1
SDKflutter
Platformandroidioswindowslinuxmacosweb
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 modifications to make it work with Flutter. The original package can be found at https://pub.dev/packages/s2geometry. This package is not affiliated with the original package.
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].