Class Building

    • Field Detail

      • CREATOR

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

      • getUserIdentifier

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

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

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

        @NonNull
        public java.lang.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 java.util.List<Point> routePointsForDevice​(long deviceID)
      • getBounds

        @NonNull
        public Bounds getBounds()
        Compute corners of this building, without rotation, in earth coordinates.
        Returns:
        Bounds
      • toMap

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Resource
      • toString

        public java.lang.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