Skip to content

MultiLineString

A GeoJSON MultiLineString.

A MultiLineString is a list of multiple LineString instances that are grouped together.

Example

Geo.MultiLineString(
    Geo.LineString(
        Geo.Point(Geo.Longitude(-73.96943), Geo.Latitude(40.78519)),
        Geo.Point(Geo.Longitude(-73.96082), Geo.Latitude(40.78095)),
    ),
    Geo.LineString(
        Geo.Point(Geo.Longitude(-73.96415), Geo.Latitude(40.79229)),
        Geo.Point(Geo.Longitude(-73.95544), Geo.Latitude(40.78854)),
    ),
)

External resources

Constructors

MultiLineString

constructor(lineStrings: List<Geo.LineString>)
constructor(vararg lineStrings: Geo.LineString)

Constructs a MultiLineString instance from multiple LineString instances.

Types

Serializer

Properties

lineStrings

The line strings that make up this MultiLineString.

Functions

toString

open override fun toString(): String