Class Geometry

  • All Implemented Interfaces:

    
    public abstract class Geometry
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Geometry.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isInside

         final Boolean isInside(GeoPoint location, Double tolerancePercent)

        Checks if location is inside the geofence.

        Parameters:
        location - : gps location to check
        tolerancePercent - : added to the geofence radius (1 + tolerance)*radius when checking
        Returns:

        true if inside, false otherwise

      • isInside

         final Boolean isInside(GeoPoint location)

        Checks if location is inside the geofence.

        Parameters:
        location - : gps location to check
        Returns:

        true if inside, false otherwise