sdk-common / com.tomtom.online.sdk.common.geojson / FeatureCollection

FeatureCollection

open class FeatureCollection : GeoJsonObject, Serializable

Represents a collection of Features.

Types

FeatureCollectionBuilder

open class FeatureCollectionBuilder

Builder for the FeatureCollection.

Constructors

<init>

FeatureCollection()

Empty constructor for the FeatureCollection.

FeatureCollection(features: MutableList<Feature!>!)

Default constructor for the FeatureCollection.

Inherited Properties

boundingBox

var boundingBox: Optional<BoundingBox!>!

type

val type: String!

Functions

accept

open fun accept(visitor: GeoJsonObjectVisitor!): Unit

addFeature

open fun addFeature(feature: Feature!): Unit

builder

open static fun builder(): FeatureCollection.FeatureCollectionBuilder!

Creates a new instance of FeatureCollectionBuilder.

getFeatures

open fun getFeatures(): ImmutableList<Feature!>!

Returns a collection of features that constitute this FeatureCollection.

Inherited Functions

getBoundingBox

open fun getBoundingBox(): Optional<BoundingBox!>!

A bounding box enclosing all geometries contained in this GeoJsonObject. Might be undefined.

setBoundingBox

open fun setBoundingBox(boundingBox: BoundingBox!): Unit

toJson

open fun toJson(): String!

Represent GeoJSON as a String compatible with RFC 7946 specification.