Class Geofence

java.lang.Object
es.situm.sdk.model.Resource
es.situm.sdk.model.cartography.Geofence
All Implemented Interfaces:
android.os.Parcelable, MapperInterface, Filterable

public class Geofence extends Resource implements android.os.Parcelable, MapperInterface
Represents a geographic region in a building. Can be monitored to check if an user enter or exits the polygon and to get analytics.
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<Geofence> CREATOR
  • Method Details

    • getName

      public String getName()
      Returns the name of the geofence
    • getCode

      public String getCode()
      Returns the code of the geofence
    • getDescription

      @Deprecated public String getDescription()
      Deprecated.
      this method is replaced by @link #getInfoHtml()
      Returns the description of the geofence
    • getInfoHtml

      public String getInfoHtml()
      Returns the information of the geofence
      Returns:
      string containing additional information of the geofence in html format
    • getFloorIdentifier

      public String getFloorIdentifier()
      Returns the floor identifier of the floor where it is placed
    • getBuildingIdentifier

      public String getBuildingIdentifier()
      Returns the building identifier to which the geofence belongs
    • getPolygonPoints

      public List<Point> getPolygonPoints()
      Returns a list of points of the closed polygon that represents the geofence
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Resource
    • toString

      public String toString()
      Overrides:
      toString in class Resource
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • toMap

      public Map<String,Object> toMap()
      Description copied from interface: MapperInterface
      Method to transform object into Map<String, Object>
      Specified by:
      toMap in interface MapperInterface
      Returns:
      Map<String, Object> with the information of the object mapped