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 Turfjs written in pure Kotlin. It supports Kotlin Multiplatform projects and also features a Kotlin DSL for building GeoJson objects.
Installation
Java and Kotlin/JVM
dependencies {
implementation "io.github.dellisd.spatialk:geojson:<version>"
implementation "io.github.dellisd.spatialk:turf:<version>"
}
Kotlin Multiplatform
commonMain {
dependencies {
implementation "io.github.dellisd.spatialk:geojson:<version>"
implementation "io.github.dellisd.spatialk:turf:<version>"
}
}
Snapshots
Snapshot builds are available on Sonatype.
Supported targets
Spatial K currently supports the following platform targets: jvm
, js
, mingwX64
, linuxX64
, macosX64
, iosX64
, iosArm64
, and iosArm32
.