sdk-common / com.tomtom.online.sdk.common.location / BoundingBox

BoundingBox

open class BoundingBox : Serializable

Represents bounding box for the map. Defined in WGS84 format.

Constructors

<init>

BoundingBox()

Default constructor for JNI.

BoundingBox(topLeft: LatLng!, bottomRight: LatLng!)

Default constructor.

Functions

contains

open fun contains(coordinates: LatLng!): Boolean

Check whether provided coordinates are inside the analyzed bounding bounds.

open fun contains(boundingBox: BoundingBox!): Boolean

Check whether provided bounding box are inside the analyzed bounding bounds.

equals

open fun equals(other: Any?): Boolean

fromCoordinates

open static fun fromCoordinates(coordinates: MutableList<LatLng!>!): BoundingBox!

Create new bounding box from list of LatLng coordinates.

getBottomRight

open fun getBottomRight(): LatLng

Bottom right corner of the defined bounding box.

getCenter

open fun getCenter(): LatLng

Center point of the defined bounding box.

getTopLeft

open fun getTopLeft(): LatLng

Top left corner of the defined bounding box.

hashCode

open fun hashCode(): Int

roundUp

open fun roundUp(precision: Int): BoundingBox

Create new bounding box - bigger then original with precision

toString

open fun toString(): String