LatLngBounds

data class LatLngBounds(val southwest: LatLng, val northeast: LatLng)(source)

An immutable class representing a latitude/longitude aligned rectangle.

The bounds are defined by the southwest and northeast corners of the rectangle.

Constructors

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

Types

Link copied to clipboard
class Builder

Builder for creating LatLngBounds by including multiple points.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The northeast corner of the bounds

Link copied to clipboard

The southwest corner of the bounds

Functions

Link copied to clipboard
fun contains(point: LatLng): Boolean

Returns whether this bounds contains the given point.

Link copied to clipboard

Returns the center of the bounds.

Link copied to clipboard

Returns a new bounds that extends this bounds to include the given point.