CircularRegion

open class CircularRegion

A CircularRegion defines a circular region with a radius, latitude and longitude.

Constructors

Link copied to clipboard
constructor(@FloatRange(from = 0.0, to = 100000) radius: Double, @FloatRange(from = RegionEvent.MIN_LATITUDE, to = RegionEvent.MAX_LATITUDE) latitude: Double, @FloatRange(from = RegionEvent.MIN_LONGITUDE, to = RegionEvent.MAX_LONGITUDE) longitude: Double)
Constructor for creating a circular region.

Properties

Link copied to clipboard
The latitude from the center of the circular region in degrees.
Link copied to clipboard
The longitude from the center of the circular region in degrees.
Link copied to clipboard
val MAX_RADIUS: Int = 100000
The maximum radius for a region event in meters.
Link copied to clipboard
The radius of the circular region in meters.

Functions

Link copied to clipboard
open fun isValid(): Boolean
Validates the circular region object.