LatLngBounds

A geographical area representing a latitude/longitude aligned rectangle.

This class does not wrap values to the world bounds.

Types

Link copied to clipboard
class Builder

Builder for composing LatLngBounds objects.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Calculates the centerpoint 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

Validate if LatLngBounds is empty, determined if absolute distance is

Link copied to clipboard

Get the north latitude value of this bounds.

Link copied to clipboard

Get the south latitude value of this bounds.

Link copied to clipboard

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

Link copied to clipboard

Get the east longitude value of this bounds.

Link copied to clipboard

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

Link copied to clipboard

Get the west longitude value of this bounds.

Link copied to clipboard

Get the latitude-longitude pair if the north east corner of this bounds.

Link copied to clipboard

Get the latitude-longitude pair of the north west corner of this bounds.

Link copied to clipboard

Get the latitude-longitude pair of the south east corner of this bounds.

Link copied to clipboard

Get the latitude-longitude pair of the south west corner of this bounds.

Link copied to clipboard

Get the area spanned by this LatLngBounds

Functions

Link copied to clipboard
operator fun contains(latLng: LatLng): Boolean

Determines whether this LatLngBounds contains a point.

operator fun contains(other: LatLngBounds): Boolean

Determines whether this LatLngBounds contains another bounds.

Link copied to clipboard
open override fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Determines whether this LatLngBounds matches another one via LatLng.

Link copied to clipboard

Get the north latitude value of this bounds.

Link copied to clipboard

Get the south latitude value of this bounds.

Link copied to clipboard

Get the east longitude value of this bounds.

Link copied to clipboard

Get the west longitude value of this bounds.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard

Constructs a LatLngBounds from current bounds with an additional latitude-longitude pair.

Link copied to clipboard

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

fun intersect(northLat: Double, eastLon: Double, southLat: Double, westLon: Double): LatLngBounds

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

Link copied to clipboard

Return an array of LatLng objects resembling this bounds.

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

Returns a string representaton of the object.

Link copied to clipboard
fun union(northLat: Double, eastLon: Double, southLat: Double, westLon: Double): LatLngBounds

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

Link copied to clipboard
open override fun writeToParcel(out: Parcel, flags: Int)

Flatten this object in to a Parcel.