CircularBounds

public abstract class CircularBounds implements LocationBias, LocationRestriction, Parcelable


Represents a circular-shaped bounds around a geographical area, defined by the latitude-longitude coordinates of the center and a radius.

This type of bounds can be used for location biases and restrictions.

Summary

Public constructors

Public methods

abstract LatLng

Returns the center of the circle, specified by its latitude-longitude coordinates.

abstract double

Returns the radius of the circle, measured in meters.

static CircularBounds
newInstance(LatLng center, double radius)

Returns an instance of CircularBounds.

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

CircularBounds

public CircularBounds()

Public methods

getCenter

public abstract LatLng getCenter()

Returns the center of the circle, specified by its latitude-longitude coordinates.

getRadius

public abstract double getRadius()

Returns the radius of the circle, measured in meters.

newInstance

public static CircularBounds newInstance(LatLng center, double radius)

Returns an instance of CircularBounds. The radius must be between 0.0 and 50000.0, inclusive.