Point

@Serializable(with = GeometrySerializer::class)
data class Point @JvmOverloads constructor(val coordinates: Position, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry

Constructors

Link copied to clipboard
constructor(coordinates: DoubleArray, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap())
constructor(coordinates: Position, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val bbox: BoundingBox? = null

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

Link copied to clipboard
Link copied to clipboard
open override 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
open override fun json(): String

Gets a JSON representation of this object.