turf-swift

A spatial analysis library in Swift, ported from Turf.js. It offers geometry and GeoJSON calculations for iOS, macOS, tvOS, watchOS, visionOS and Linux apps.

Share on XLicense: ISC

Overview

Turf for Swift is a spatial analysis library written in Swift and ported from Turf.js. It provides geometry and GeoJSON calculations for native apps on iOS, macOS, tvOS, watchOS and visionOS, and it also works on Linux. It needs Xcode 14.1 or later. Releases can be installed with the common Swift dependency managers, including CocoaPods.

Key features

  • Port of Turf.js spatial analysis to Swift
  • Geometry and GeoJSON calculations
  • Runs on Apple platforms and Linux
  • Installs through popular Swift dependency managers

Best for

Swift developers who need geospatial calculations in apps or command line tools. Objective-C projects need a compatibility layer, and visionOS is not supported through CocoaPods.

Upstream
mapbox/turf-swift
Fork on GitHub
Guo-astro/turf-swift
Upstream stars
272
Category
Maps and geospatial
Language
Swift
License
ISC
Forked
2020-11-01
Sync status
In syncLast synced 2026-09-29