Skip to content

Available on maven central

Choose a tag to compare

@gzoritchak gzoritchak released this 30 Sep 20:25

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