MTBounds

@Serializable(with = MTBoundsSerializer::class)
data class MTBounds(val southwest: LngLat, val northeast: LngLat)

Geographical bounding box represented by south-west and north-east corners.

Constructors

constructor(west: Double, south: Double, east: Double, north: Double)

Convenience constructor accepting west, south, east and north edges in degrees.

constructor(southwest: LngLat, northeast: LngLat)

Functions

fun contains(point: LngLat): Boolean

Check if the bounds contain a point.