Companion

object Companion

Functions

Link copied to clipboard
fun fromGeoJSON(geojson: String): Array<Polygon>?

Parses a standard GeoJSON polygon string. The type of the incoming GeoJSON object must be a Polygon or MultiPolygon, optionally embedded under a "type: Feature". A Polygon will return as a length 1 array, while a MultiPolygon will be 1 or more in length.

Link copied to clipboard