Turf.js
Turf.js is an open-source JavaScript library used for spatial analysis. It includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can run Turf server-side with Node.js. You can find the source code on GitHub.
Turf works well with Mapbox GL JS. The Mapbox Java SDK also has a Turf for Java library.
Related resources:
- Turf.js documentation
- Getting started: Spatial analysis
- Tutorial: Analyze data with Turf.js and Mapbox GL JS
- Example: Measure distances with Turf.js
Was this page helpful?