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

PolygonBuilder

class PolygonBuilder

A GeoJSON Geometry type comprising one or more LineString.

Functions

build

fun build(): Polygon

Constructs a new Polygon.

withBoundingBox

fun withBoundingBox(boundingBox: Optional<BoundingBox>): PolygonBuilder

A bounding box enclosing all geometries contained in this com.tomtom.online.sdk.common.geojson.GeoJsonObject. Might be undefined.

Companion Object Functions

create

fun create(exteriorRing: LineString, interiorRings: List<LineString>): PolygonBuilder

Creates a new PolygonBuilder.