Releases: data2viz/geojson-kotlin
Releases · data2viz/geojson-kotlin
0.6.6
0.6.5
- Kotlin 1.8.0
- Remove unneeded
Typed
class introduced in version 0.6.4 that broke iOS consumers with the following error:e: Compilation failed: external function Typed.<get-type> must have @TypedIntrinsic, @SymbolName, @GCUnsafeCall or @ObjCMethod annotation
.
Available on maven central
No modification of the code. This version is the first available on maven central.
To use it in your project, just add the repo maven central:
repositories {
mavenCentral()
}
And then add the depency:
compile 'io.data2viz.geojson:geojson-js:0.6.0'
or
compile 'io.data2viz.geojson:geojson-jvm:0.6.0'
depending on your context.
You can then use the String extension toGeoJsonObject to transform any String into a GeoJsonObject:
val featureCollection = json.toGeoJsonObject() as FeatureCollection
v0.5.0
First usable version. The multiplatform API is composed by data class representing the different GeoJson concepts (Point, LineString, MultiLineString, ... Feature, FeatureCollection).
To parse a String as GeoJson just use the String extension function toGeoJsonObject()
.