Class Building

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

public class Building extends Resource implements android.os.Parcelable, MapperInterface
A building. Instances are immutable.

See Building.Builder to create an instance and CoordinateConverter to convert between Coordinate and CartesianCoordinate's building coordinate.

  • Field Details

    • CREATOR

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

    • getUserIdentifier

      @NonNull public String getUserIdentifier()
      Returns unique identifier of the owner user of the building
      Returns:
      String
    • getName

      @NonNull public String getName()
      Returns the building name that is appropriate for display to the user.
    • getAddress

      @NonNull public String getAddress()
      Returns the building address.
    • getInfoHtml

      @NonNull public String getInfoHtml()
      Returns additional information about the building, formatted with HTML.
    • getDimensions

      @NonNull public Dimensions getDimensions()
      Returns dimensions of building's base (height and width) in meters.
    • getCenter

      @NonNull public Coordinate getCenter()
      Return center of the building's base, as geographical coordinate.
    • getRotation

      @NonNull public Angle getRotation()
      Returns rotation angle of the building's base, relative to the west-east axis, increasing in clockwise, being 0 the west-east axis.
    • getPictureUrl

      @NonNull public URL getPictureUrl()
      Return the url of the building image
    • getPictureThumbUrl

      @NonNull public URL getPictureThumbUrl()
      Return the url of the thumbnail building image
    • getBoundsRotated

      @NonNull public Bounds getBoundsRotated()
      Compute corners of this building, with rotation, in earth coordinates.
      Returns:
      Bounds
    • routePointsForDevice

      public List<Point> routePointsForDevice(long deviceID)
    • getBounds

      @NonNull public Bounds getBounds()
      Compute corners of this building, without rotation, in earth coordinates.
      Returns:
      Bounds
    • 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
    • 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