Class ExternalLocation

java.lang.Object
es.situm.sdk.location.ExternalLocation
All Implemented Interfaces:
android.os.Parcelable, MapperInterface

public class ExternalLocation extends Object implements android.os.Parcelable, MapperInterface
  • Field Details

    • CREATOR

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

    • getBuildingId

      public String getBuildingId()
    • getFloorId

      public String getFloorId()
    • getLatLng

      public Coordinate getLatLng()
    • getAccuracy

      public float getAccuracy()
    • getBearing

      public Angle getBearing()
    • hasBearing

      public boolean hasBearing()
      Returns:
      true if bearing is not null
    • 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
    • hashCode

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

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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
    • fromMap

      public static ExternalLocation fromMap(Map<String,Object> map) throws IllegalArgumentException
      Throws:
      IllegalArgumentException