CircularBounds

public abstract class CircularBounds extends Object
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.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

abstract LatLng
getCenter()
Returns the center of the circle, specified by its latitude-longitude coordinates.
abstract double
getRadius()
Returns the radius of the circle, measured in meters.
static CircularBounds
newInstance(LatLng center, double radius)
Returns an instance of CircularBounds.

Inherited Method Summary

Public Constructors

public CircularBounds ()

Public Methods

public abstract LatLng getCenter ()

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

public abstract double getRadius ()

Returns the radius of the circle, measured in meters.

public static CircularBounds newInstance (LatLng center, double radius)

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

Parameters
center
radius