GeometryCollection¶
@Serializable(with = Geo.GeometryCollection.Serializer::class)
data class GeometryCollection(val geometries: List<Geo>) : Geo
A GeoJSON geometry collection.
A GeometryCollection is a list of Geo objects.
It is not recommended to include a GeometryCollection inside another.
Example¶
Geo.GeometryCollection(
Geo.MultiPoint(
Geo.Point(Longitude(-73.9580), Latitude(40.8003)),
Geo.Point(Longitude(-73.9498), Latitude(40.7968)),
Geo.Point(Longitude(-73.9737), Latitude(40.7648)),
Geo.Point(Longitude(-73.9814), Latitude(40.7681)),
),
Geo.MultiLineString(
Geo.LineString(
Geo.Point(Longitude(-73.96943), Latitude(40.78519)),
Geo.Point(Longitude(-73.96082), Latitude(40.78095)),
),
Geo.LineString(
Geo.Point(Longitude(-73.96415), Latitude(40.79229)),
Geo.Point(Longitude(-73.95544), Latitude(40.78854)),
),
Geo.LineString(
Geo.Point(Longitude(-73.97162), Latitude(40.78205)),
Geo.Point(Longitude(-73.96374), Latitude(40.77715)),
),
Geo.LineString(
Geo.Point(Longitude(-73.97880), Latitude(40.77247)),
Geo.Point(Longitude(-73.97036), Latitude(40.76811)),
),
)
)
Constructors¶
GeometryCollection¶
constructor(vararg geometries: Geo)
Types¶
Serializer¶
@LowLevelApi
object Serializer : KSerializer<Geo.GeometryCollection>
Properties¶
geometries¶
val geometries: List<Geo>