MTBoundingBox

@Serializable
data class MTBoundingBox(val minLon: Double, val minLat: Double, val maxLon: Double, val maxLat: Double)

A bounding box in WGS84 coordinates.

Constructors

constructor(minLon: Double, minLat: Double, maxLon: Double, maxLat: Double)

Types

Properties

Returns true if the bounding box spans across the antimeridian (180th meridian).

Functions

Calculates the approximate surface area in square kilometers.

Estimates the exact number of tiles required for this bounding box within the specified zoom range.

Estimates the number of tiles required per zoom level for this bounding box.

Expands the bounding box outward by a given distance in meters.

Expands the bounding box outward by a given percentage.

Checks if this bounding box intersects with another bounding box.

Normalizes the bounding box coordinates and splits it into two if it crosses the antimeridian (Dateline).

Returns an equivalent MTBounds instance.