Turf works well with Mapbox GL JS. The Mapbox Java SDK also has a Turf for Java library.
- Turf.js documentation
- Getting started: Spatial analysis
- Tutorial: Analyze data with Turf.js and Mapbox GL JS
- Tutorial: Sort stores by distance
- Example: Measure distances with Turf.js