Class Overview
This class defines a polygonal geofence object. A polygonal geofence is
defined by list of LatLongPoint
points
in the order given by the administrator. Based on the order in which points are specified, edges are constructed
between consecutive points to form a convex, concave or self
intersecting polygon.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
public
double
graceDistance
Since: API level 6
Optional grace distance value in meters. An outer perimeter or boundary is
created around the existing polygon based on the grace distance value
entered. If the administrator does not enter grace distance value, it is assigned a default value
of zero meters.
The device is considered to be within the geofence if it falls
outside the boundary of the original geofence but within the boundary of
the area created by specifying the grace distance.
Since: API level 6
List of LatLongPoint
points which form the vertices of the polygon.
Public Constructors
public
PolygonalGeofence
(List<LatLongPoint> points, double graceDistance)
Constructor to create a PolygonalGeofence
object with points listed by the administrator.
Parameters
points
| List of LatLongPoint points specified by the administrator |
graceDistance
| Distance in meters |