Skip to content

nbspou/dart-s2geometry

Repository files navigation

S2 Geometry for Dart

Build Status

Dart port of the C++ s2geometry and Go geo libraries.

Usage

A simple usage example:

import 'package:s2geometry/s2geometry.dart';

main() {
  S2LatLng latLng = new S2LatLng.fromDegrees(49.703498679, 11.770681595);
  S2CellId cellId = new S2CellId.fromLatLng(latLng);
  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.

About

Dart port of the S2 Geometry library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages