Overview
Spatial K is a set of libraries for working with geospatial data in Kotlin, including an implementation of GeoJSON and a port of Turf.js written in pure Kotlin. It supports Kotlin Multiplatform and Java projects and features a Kotlin DSL for building GeoJSON objects.
See the API Reference for detailed documentation.
Snapshots
Section titled “Snapshots”Snapshot builds are available on Sonatype:
repositories { maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }}
dependencies { implementation("org.maplibre.spatialk:geojson:VERSION-SNAPSHOT")}Note: Snapshots are unstable and may change without notice.
Supported targets
Section titled “Supported targets”All modules have broad Kotlin Multiplatform support, including JVM, JS, WASM, and Native. Native targets include tier 1-3, except platforms deprecated by JetBrains.