https://github.com/elcolto/geokjson
Multiplatform Library for GeoJSON
https://github.com/elcolto/geokjson
geojson google-maps kmp kmp-library kotlin kotlin-multiplatform library mapbox maps turf
Last synced: 2 months ago
JSON representation
Multiplatform Library for GeoJSON
- Host: GitHub
- URL: https://github.com/elcolto/geokjson
- Owner: elcolto
- License: apache-2.0
- Created: 2024-05-28T19:42:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-08T09:02:10.000Z (3 months ago)
- Last Synced: 2025-09-08T10:37:45.896Z (3 months ago)
- Topics: geojson, google-maps, kmp, kmp-library, kotlin, kotlin-multiplatform, library, mapbox, maps, turf
- Language: Kotlin
- Homepage: https://elcolto.github.io/GeoKJSON/
- Size: 1.9 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GeoKJSON
GeoKJSON (spelled: "Ge - OK - Json", aligned to Squares Kotlin OK libraries
like [Okio](https://square.github.io/okio/)) is a Kotlin Multiplatform library. Based
on [Spatial K](https://github.com/dellisd/spatial-k) by [Derek Ellis](https://github.com/dellisd) 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.
- [geojson](geojson) - Containing a collection of [GeoJSON](https://geojson.org/) structured geographic data. These are
designed to apply to [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS_84)
and [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946)

- [turf](turf) - A port of [turfjs](https://turfjs.org/) functions for spatial analysis and operations

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
```kotlin
commonMain {
dependencies {
implementation("io.github.elcolto.geokjson:geojson:$geokVersion")
implementation("io.github.elcolto.geokjson:turf:$geokVersion")
}
}
```