elcolto / GeoKJSON

Multiplatform Library for GeoJSON
https://elcolto.github.io/GeoKJSON/
Apache License 2.0
2 stars 0 forks source link
geojson google-maps kmp kmp-library kotlin kotlin-multiplatform library mapbox maps turf

GeoKJSON

GeoKJSON (spelled: "Ge - OK - Json", aligned to Squares Kotlin OK libraries like Okio) is a Kotlin Multiplatform library. Based on Spatial K by Derek Ellis this library is designed to work with geospatial data in Kotlin including an implementation of GeoJSON and a port of Turfjs written in pure Kotlin. It supports plain Kotlin and Multiplatform (KMP) projects.

This project divided into two modules which are even released into separate artifacts.

The goal of these libraries is to provide GeoJSON functionality for Kotlin Multiplatform projects. So encapsulation and logical operations for geographic needs can be achieved on a shared code base.

Installation

commonMain {
  dependencies {
    implementation("io.github.elcolto.geokjson:geojson:$geokVersion")
    implementation("io.github.elcolto.geokjson:turf:$geokVersion")
  }
}