Skip to content

Releases: data2viz/geojson-kotlin

0.6.6

17 Feb 23:40

Choose a tag to compare

  • Kotlin 1.8.10
  • Fix a publication issue that prevented the proper resolution of Kotlin/Native artifacts because of a case mismatch.

0.6.5

17 Feb 21:48

Choose a tag to compare

  • 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

30 Sep 20:25

Choose a tag to compare

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

21 Feb 00:29

Choose a tag to compare

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().