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 tracker
.