GeoJson

sealed interface GeoJson

A GeoJSON object represents a Geometry, Feature, or collection of Features.

Inheritors

Properties

Link copied to clipboard
abstract val bbox: BoundingBox?

An optional bounding box used to represent the limits of the object's geometry.

Link copied to clipboard
abstract val foreignMembers: Map<String, Any>

Members not described by specification ("foreign members") MAY be used in a GeoJSON document. NOTE: Every custom type, which is added as a value will be represented also as a Map<String, Any>. If deserialization of custom types are desired, this hast to be done by consumer.

Functions

Link copied to clipboard
abstract fun json(): String

Gets a JSON representation of this object.