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.GeoPoint in counterclockwise order. The interior rings (0 or more) - LineStrings of at least four com.tomtom.sdk.common.location.GeoPoints 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)