MultiPoint¶
@Serializable(with = Geo.MultiPoint.Serializer::class)
data class MultiPoint(val points: List<Geo.Point>) : Geo
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¶
MultiPoint¶
constructor(vararg points: Geo.Point)
Constructs a MultiPoint instance from multiple Point instances.
Types¶
Serializer¶
@LowLevelApi
object Serializer : KSerializer<Geo.MultiPoint>
Properties¶
points¶
The points that make up this MultiPoint.