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

GeoJsonObject

abstract class GeoJsonObject : Visitable<GeoJsonObjectVisitor!>, Serializable

A GeoJsonObject representing a Geometry, Feature, or collection of Features.

Constructors

<init>

GeoJsonObject()

Properties

boundingBox

var boundingBox: Optional<BoundingBox!>!

type

val type: String!

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.

Inherited Functions

accept

abstract fun accept(visitor: T): Unit

Accept the visitor

Inheritors

Feature

open class Feature : GeoJsonObject, Visitable<GeoJsonObjectVisitor!>, Serializable

Represents a spatially bound entity. Consists of a Geometry object and an id. Both are optional. If geometry is absent, the feature is unlocated.

FeatureCollection

open class FeatureCollection : GeoJsonObject, Serializable

Represents a collection of Features.

Geometry

abstract class Geometry : GeoJsonObject, Serializable

A Geometry object representing points, curves, or surfaces in World Geodetic System 1984 (WGS 84) or a collection of Geometry objects.