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

FeatureCollection

open class FeatureCollection : GeoJsonObject, Serializable

Represents a collection of Features.

Constructors

<init>

FeatureCollection()

Represents a collection of Features.

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

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.