sdk-search / com.tomtom.online.sdk.search.data.geometry / Geometry

Geometry

open class Geometry : Serializable

A Class that represents the geometry in Search POIs (Points of Interest). There can be two different types of geometry: circle and polygon.

Constructors

<init>

Geometry(polygon: PolygonGeometry!)

The Constructor of a Class that determines the geometry in Search POIs. This Constructor initializes polygon geometry, and assigns null to circle geometry.

Geometry(circle: CircleGeometry!)

The Constructor of a Class that determines the geometry in Search POIs. This Constructor initializes circle geometry, and assigns null to polygon geometry.

Functions

getCircle

open fun getCircle(): CircleGeometry?

The getter of a circle geometry. Only use this if the geometry Class was initialized through a proper Constructor, otherwise it will return null.

getPolygon

open fun getPolygon(): PolygonGeometry?

The getter of a polygon geometry. Only use this if the geometry Class was initialized through a proper Constructor, otherwise it will return null.