BoundingBox

data class BoundingBox(val southwest: GeoLocation, val northeast: GeoLocation)

The bounding box is the delimited area of something, it could be the map the user is seeing or the square area of a region of a cartographic boundary.

Constructors

Link copied to clipboard
constructor(southwest: GeoLocation, northeast: GeoLocation)

Properties

Link copied to clipboard

the geo location of the most northern point.

Link copied to clipboard

the geo location of the most southern point.

Functions

Link copied to clipboard
Link copied to clipboard

Verifies if there is any intersection between two bounding boxes. The method also considers whether both of the bounding boxes cross the antimeridian.

fun contains(geoLocation: GeoLocation): Boolean
Link copied to clipboard
Link copied to clipboard
operator fun plus(other: BoundingBox): BoundingBox
operator fun plus(other: GeoLocation): BoundingBox
Link copied to clipboard

Converts the BoundingBox model into the view object BoundingBoxViewData used to represent bounding boxes in the UI.