Polygon
data class Polygon( val exteriorRing: LineString, val interiorRings: List<LineString>, val boundingBox: GeoBoundingBox? = null) : Geometry, GeoJsonObject
Content copied to clipboard
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)
Content copied to clipboard
Properties
Link copied to clipboard
Bounding box of the GeoJsonObject.