Skip to main content

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:

Was this page helpful?