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