Skip to content

Optimizations and utilities for using Google's S2 library in Java

License

Notifications You must be signed in to change notification settings

AfieldTrails/s2-java-util

Repository files navigation

S2 Geometry utilities

This library is built on Google's S2 geometry library, providing some optimizations (S2CellIds) and utilities (everything else).

There are several excellent blog posts describing what Google's library provides:

S2CellIds

This version of S2CellId has been optimized for use Android to reduce the number of allocations required. It can be used to replace S2CellId objects with long.

S2Distance

Has some utility methods for working with distances in the S2 library. Most notably, it contains a port of the Android Location distance method that computes the distance on the WGS84 spheroid. This allows distance calculations to more closely match between representations.

Building

This library uses bazel for compilation.

bazel build :s2

About

Optimizations and utilities for using Google's S2 library in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published