Point

@Serializable(with = PointSerializer::class)
data class Point @JvmOverloads constructor(val coordinates: Position, val bbox: BoundingBox? = null) : SingleGeometry, PointGeometry(source)

A Point geometry represents a single Position in coordinate space.

See RFC 7946 Section 3.1.2 for the full specification.

See also

Constructors

Link copied to clipboard
constructor(coordinates: Position, bbox: BoundingBox? = null)
constructor(longitude: Double, latitude: Double, altitude: Double? = null, bbox: BoundingBox? = null)

Create a Point from individual coordinate components.

Types

Link copied to clipboard
object Companion

Factory methods for creating and serializing Point objects.

Properties

Link copied to clipboard
open override val bbox: BoundingBox?

The BoundingBox of this Point.

Link copied to clipboard
Link copied to clipboard

The latitude value of this Point in degrees.

Link copied to clipboard

The longitude value of this Point in degrees.

Functions

Link copied to clipboard

Converts this Point to a geo URI of the format geo:lat,lon or geo:lat,lon,alt as defined in RFC 7946 Section 9.