CoordsBounds

data class CoordsBounds(latNorth: Double, lonEast: Double, latSouth: Double, lonWest: Double)

A geographical area representing a latitude/longitude aligned rectangle.

Constructors

Link copied to clipboard
fun CoordsBounds(latNorth: Double, lonEast: Double, latSouth: Double, lonWest: Double)

Types

Link copied to clipboard
class Builder

Builder for composing LatLngBounds objects.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun contains(point: Coords): Boolean

Determines whether this LatLngBounds contains a point

Link copied to clipboard
fun including(point: Coords): CoordsBounds
Link copied to clipboard
fun intersect(bounds: CoordsBounds): CoordsBounds?

Returns a new LatLngBounds that is the intersection of this with another box

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun union(bounds: CoordsBounds): CoordsBounds

Returns a new LatLngBounds that stretches to contain both this and another LatLngBounds.

Properties

Link copied to clipboard
val center: Coords

Calculates the center point of this LatLngBounds by simple interpolation and returns it as a point. This is a non-geodesic calculation which is not the geographic center.

Link copied to clipboard
val isEmptySpan: Boolean

Validate if LatLngBounds is empty, determined if absolute distance is

Link copied to clipboard
val latitudeSpan: Double

Get the absolute distance, in degrees, between the north and south boundaries of this LatLngBounds

Link copied to clipboard
val latNorth: Double
Link copied to clipboard
val latSouth: Double
Link copied to clipboard
val lonEast: Double
Link copied to clipboard
val longitudeSpan: Double

Get the absolute distance, in degrees, between the west and east boundaries of this LatLngBounds

Link copied to clipboard
val lonWest: Double
Link copied to clipboard
val northeast: Coords
Link copied to clipboard
val southwest: Coords