Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

turf

> 编程语言
Open source

A modular geospatial engine written in JavaScript and TypeScript

10.4K stars0 likes0 views
WebsiteGitHub

About

A modular geospatial engine written in JavaScript and TypeScript

====== Version Badge Gitter chat Backers on Open Collective Sponsors on Open Collective

A modular geospatial engine written in JavaScript

Turf is a JavaScript library 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 module, or you can run Turf server-side with Node.js (see below).

Getting Started

Read our getting started guide to begin working with Turf.

Or explore the Turf API and examples at turfjs.org.

Runtime support

Turf is currently published to work with any reasonably modern Javascript runtime.

Node is a first class citizen, and we recommend using an Active or Maintenance LTS release.

Other runtimes, such as Deno or Bun, are not officially supported. We would be very interested to hear your experiences though.

When bundling Turf for the browser, ensure your build setup transpiles and polyfills Turf along with all of its transitive dependencies to match your target browsers.

Browser support

@turf/turf includes a browser bundle that combines, transpiles, and minifies all Turf modules into a single JavaScript file. We periodically update our minimum browser targets using Browserslist's default preset.

Contributors

This project exists thanks to all the people who contribute. If you are interested in helping, check out the Contributing Guide.

Backers

Thank you to all our backers! [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Issues· 289 open

View all issuesOpen on GitHub
  • #3168

    `union` produces zero-area holes

    Updated Sep 21, 2026
  • #2973

    Increase type strictness of @turf/helper's geometry() coordinates

    Updated Sep 13, 2026
  • #3139

    Deduplicate types testing

    Updated Aug 23, 2026
  • #3109

    Replace boolean-contains isPolyInPoly logic with difference implementation

    @turf/boolean-containsUpdated Jul 25, 2026
  • #639

    @turf/buffer endcap and join strategies

    enhancementremove-jsts@turf/bufferUpdated Jul 18, 2026
  • #3023

    nearestPointOnLine returns invalid segmentIndex when result is at the end of the last segment of the lineString

    next-major-releaseUpdated Jul 12, 2026
  • #3086

    bug(@turf/midpoint): altitude (z-coordinate) not interpolated for 3D points

    Updated Jun 30, 2026
  • #3041

    booleanValid incorrectly returns true for coordinates outside valid range (e.g., >180)

    Updated May 27, 2026
  • #2832

    turf.dissolve pegs cpu and does not return

    polyclip-tsUpdated May 13, 2026
  • #2809

    Error: coordinates must contain numbers

    @turf/line-splitUpdated May 13, 2026

> Tags

TypeScriptalgorithmcomputational-geometrygeojsongeospatial

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言