Polygon

data class Polygon(    val exteriorRing: LineString,     val interiorRings: List<LineString>,     val boundingBox: GeoBoundingBox? = null) : Geometry, GeoJsonObject

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.sdk.common.location.GeoCoordinate in counterclockwise order. The interior rings (0 or more) - LineStrings of at least four com.tomtom.sdk.common.location.GeoCoordinates in clockwise order - define holes in the polygon. In all cases the first and the last Position in a LineString contain identical values.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Polygon(    exteriorRing: LineString,     interiorRings: List<LineString>,     boundingBox: GeoBoundingBox? = null)

Properties

Link copied to clipboard
open override val boundingBox: GeoBoundingBox? = null

Bounding box of the GeoJsonObject.

Link copied to clipboard
val exteriorRing: LineString
Link copied to clipboard
val interiorRings: List<LineString>