-
- All Implemented Interfaces:
public abstract class Geometry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Geometry.Companion
-
Field Summary
Fields Modifier and Type Field Description private final GeometryType
type
private final GeoCircle
enclosingCircle
-
Method Summary
Modifier and Type Method Description final GeometryType
getType()
Returns the actual type of the geofence, e.g. final GeoCircle
getEnclosingCircle()
Returns the enclosing circle in gps space of the geofence final Boolean
isInside(GeoPoint location, Double tolerancePercent)
Checks if location is inside the geofence. final Boolean
isInside(GeoPoint location)
Checks if location is inside the geofence. -
-
Method Detail
-
getType
final GeometryType getType()
Returns the actual type of the geofence, e.g. GeometryPolygon. See com.pointrlabs.core.geometry.GeometryType
-
getEnclosingCircle
final GeoCircle getEnclosingCircle()
Returns the enclosing circle in gps space of the geofence
-
isInside
final Boolean isInside(GeoPoint location, Double tolerancePercent)
Checks if location is inside the geofence.
- Parameters:
location
- : gps location to checktolerancePercent
- : added to the geofenceradius
(1 + tolerance)*radius when checking
-
-
-
-