GeoBoundingBox

data class GeoBoundingBox(val topLeft: GeoCoordinate, val bottomRight: GeoCoordinate)

Represents a bounding box for the map. It's defined in the WGS84 format.

Parameters

topLeft

Top left corner of the bounding box.

bottomRight

Bottom right corner of the bounding box.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun GeoBoundingBox(topLeft: GeoCoordinate, bottomRight: GeoCoordinate)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun contains(boundingBox: GeoBoundingBox): Boolean

Check whether this bounding box contains the other GeoBoundingBox described by the given parameter.

fun contains(coordinates: GeoCoordinate): Boolean

Checks whether this bounding box contains the given GeoCoordinate.

Link copied to clipboard
fun roundUp(precision: Int): GeoBoundingBox

Creates a new bounding box using current bounds, but described with the given precision.

Properties

Link copied to clipboard
val bottomRight: GeoCoordinate
Link copied to clipboard
val center: GeoCoordinate

Provides a center point of the defined bounding box.

Link copied to clipboard
val topLeft: GeoCoordinate