Package es.situm.sdk.model.cartography
Class Building
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- es.situm.sdk.model.cartography.Building
-
- All Implemented Interfaces:
android.os.Parcelable,Filterable
public class Building extends Resource implements android.os.Parcelable
A building. Instances are immutable.See
Building.Builderto create an instance andCoordinateConverterto convert betweenCoordinateandCartesianCoordinate's building coordinate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuilding.BuilderBuilder to create aBuildinginstance
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Building>CREATOR-
Fields inherited from class es.situm.sdk.model.Resource
EMPTY_IDENTIFIER, EMPTY_IDENTIFIER_BACKWARDS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object o)StringgetAddress()Returns the building address.BoundsgetBounds()Compute corners of this building, without rotation, in earth coordinates.BoundsgetBoundsRotated()Compute corners of this building, with rotation, in earth coordinates.CoordinategetCenter()Return center of the building's base, as geographical coordinate.DimensionsgetDimensions()Returns dimensions of building's base (height and width) in meters.StringgetInfoHtml()Returns additional information about the building, formatted with HTML.StringgetName()Returns the building name that is appropriate for display to the user.URLgetPictureThumbUrl()Return the url of the thumbnail building imageURLgetPictureUrl()Return the url of the building imageAnglegetRotation()Returns rotation angle of the building's base, relative to the west-east axis, increasing in clockwise, being 0 the west-east axis.StringgetUserIdentifier()Returns unique identifier of the owner user of the buildinginthashCode()List<Point>routePointsForDevice(long deviceID)StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)-
Methods inherited from class es.situm.sdk.model.Resource
getCreatedAt, getCustomFields, getIdentifier, getUpdatedAt
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Building> CREATOR
-
-
Method Detail
-
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
-
getBounds
@NonNull public Bounds getBounds()
Compute corners of this building, without rotation, in earth coordinates.- Returns:
Bounds
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-