Class Poi

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

public class Poi extends Resource implements FloorResource, android.os.Parcelable, MapperInterface
Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.

Instances are immutable.

  • Field Details

    • CREATOR

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

    • getName

      @NonNull public String getName()
      Returns a name for the POI, appropriate for display to the user.
    • getLocalizedName

      @NonNull public String getLocalizedName(String langCode)
      Returns the name of the POI in the language specified. If there is no name for that language it will return the default value
      Parameters:
      langCode - Language code in ISO 639. It must have two digits, for example "es", "en"
      Returns:
      Localized name
    • getInfoHtml

      @NonNull public String getInfoHtml()
      Returns additional information about POI, in HTML.
    • getCategory

      @NonNull public PoiCategory getCategory()
      Returns category of the POI
    • getCategoryIdentifier

      @NonNull public String getCategoryIdentifier()
      Return the identifier of the PoiCategory this POI belongs to.
      Returns:
      Identifier
    • getCategories

      @NonNull public Collection<PoiCategory> getCategories()
      Returns the list of PoiCategorys this POI belongs to.
      Returns:
      List of categories.
    • getCategoryIdentifiers

      @NonNull public Collection<String> getCategoryIdentifiers()
      Returns the list of PoiCategory identifiers this POI belongs to.
      Returns:
      List of identifiers.
    • getBuildingIdentifier

      @NonNull public String getBuildingIdentifier()
      Returns identifier of building to which the POI belongs.
      Specified by:
      getBuildingIdentifier in interface BuildingResource
    • getFloorIdentifier

      @NonNull public String getFloorIdentifier()
      If this POI is outside the building (isOutdoor() == true), this field has no meaning.
      Specified by:
      getFloorIdentifier in interface FloorResource
    • getPosition

      public Point getPosition()
    • getCoordinate

      @NonNull public Coordinate getCoordinate()
      Return geographical coordinate of this position
    • getCartesianCoordinate

      @NonNull public CartesianCoordinate getCartesianCoordinate()
      Returns cartesian coordinate of this position, relative to building Bounds). If this POI is outside the building (isOutdoor() == true), this field has no meaning.
    • isOutdoor

      public boolean isOutdoor()
      Returns whether the POI is placed outside the building or not.
      Returns:
      true if it's outside, so it has no getCartesianCoordinate() nor getFloorIdentifier() ()}.

      false otherwise.

    • isIndoor

      public boolean isIndoor()
      Returns whether the POI is placed outside the building or not.
      Returns:
      true if it's inside.

      false otherwise.

    • 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 Poi fromMap(Map<String,Object> map) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • 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