Spatial K¶
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.
Modules¶
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¶
Legend:
- ✅ Available and tested in CI
- ☑️ Available but not tested in CI
- ❌ Not available
Target | Platform | Support |
---|---|---|
Kotlin/JVM | JVM | ✅ |
Android | ☑️ | |
Kotlin/JS | Browser | ☑️ |
Node.js | ✅ | |
Kotlin/WASM | Browser, D8 | ☑️ |
Node.js | ✅ | |
Node.js (WASI) | ☑️ | |
Kotlin/Native | macOS (ARM64, x64) | ✅ |
Linux (x64, ARM64) | ✅ | |
Windows (x64) | ✅ | |
iOS (all variants) | ☑️ | |
watchOS (all variants) | ☑️ | |
tvOS (all variants) | ☑️ | |
Android Native (all variants) | ☑️ |