MultiPoint

A GeoJSON MultiPoint.

A MultiPoint is a list of multiple Point instances that are grouped together.

Unlike LineString, which implies that the points are connected in order, the points in Geo.MultiPoint are in no particular order and are not meant to be connected.

Example

Geo.MultiPoint(
Geo.Point(Geo.Longitude(-73.9580), Geo.Latitude(40.8003)),
Geo.Point(Geo.Longitude(-73.9498), Geo.Latitude(40.7968)),
Geo.Point(Geo.Longitude(-73.9737), Geo.Latitude(40.7648)),
Geo.Point(Geo.Longitude(-73.9814), Geo.Latitude(40.7681)),
)

External resources

Constructors

Link copied to clipboard
constructor(points: List<Geo.Point>)
constructor(vararg points: Geo.Point)

Constructs a MultiPoint instance from multiple Point instances.

Types

Link copied to clipboard

Properties

Link copied to clipboard

The points that make up this MultiPoint.

Functions

Link copied to clipboard
open override fun toString(): String

JSON representation of this object as a BSON document.

Link copied to clipboard
open override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.