sdk-common / com.tomtom.online.sdk.common.geojson.geometry / Geometry

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.

Constructors

<init>

Geometry()

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

Inherited Properties

boundingBox

var boundingBox: Optional<BoundingBox!>!

type

val type: String!

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.

Inheritors

GeometryCollection

open class GeometryCollection : Geometry

A collection of Geometry objects.

LineString

open class LineString : Geometry

A GeoJSON Geometry type comprising a collection of two or more LatLngs.

MultiLineString

open class MultiLineString : Geometry

A GeoJSON Geometry type comprising a collection of LineStrings.

MultiPoint

open class MultiPoint : Geometry

A GeoJSON Geometry type comprising a collection of LatLngs.

MultiPolygon

open class MultiPolygon : Geometry

A collection of Polygons.

Point

open class Point : Geometry

A GeoJSON Geometry type comprising a single LatLng.

Polygon

open class Polygon : Geometry

A GeoJSON Geometry type comprising one or more LineStrings. The exterior ring represents the outer edges of a polygon and is a LineString of at least four com.tomtom.online.sdk.common.location.LatLng in counterclockwise order. The interior rings (0 or more) - LineStrings of at least four com.tomtom.online.sdk.common.location.LatLngs in clockwise order - define holes in the polygon. In all cases the first and the last Position in a LineString contain identical values.