Package es.situm.sdk.model.cartography
Class Poi
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- es.situm.sdk.model.cartography.Poi
-
- All Implemented Interfaces:
android.os.Parcelable,BuildingResource,FloorResource,Filterable
public class Poi extends Resource implements FloorResource, android.os.Parcelable
Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.Instances are immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPoi.BuilderBuilder to create aPoiinstances
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Poi>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)StringgetBuildingIdentifier()Returns identifier of building to which the POI belongs.CartesianCoordinategetCartesianCoordinate()Returns cartesian coordinate of this position, relative to buildingBounds).PoiCategorygetCategory()Returns category of the POICoordinategetCoordinate()Return geographical coordinate of this positionStringgetFloorIdentifier()If this POI is outside the building (isOutdoor()== true), this field has no meaning.StringgetInfoHtml()Returns additional information about POI, in HTML.StringgetName()Returns a name for the POI, appropriate for display to the user.PointgetPosition()inthashCode()booleanisIndoor()Returns whether the POI is placed outside the building or not.booleanisOutdoor()Returns whether the POI is placed outside the building or not.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<Poi> CREATOR
-
-
Method Detail
-
getName
@NonNull public String getName()
Returns a name for the POI, appropriate for display to the user.
-
getInfoHtml
@NonNull public String getInfoHtml()
Returns additional information about POI, in HTML.
-
getCategory
@NonNull public PoiCategory getCategory()
Returns category of the POI
-
getBuildingIdentifier
@NonNull public String getBuildingIdentifier()
Returns identifier of building to which the POI belongs.- Specified by:
getBuildingIdentifierin interfaceBuildingResource
-
getFloorIdentifier
@NonNull public String getFloorIdentifier()
If this POI is outside the building (isOutdoor()== true), this field has no meaning.- Specified by:
getFloorIdentifierin interfaceFloorResource
-
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 buildingBounds). 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:
trueif it's outside, so it has nogetCartesianCoordinate()norgetFloorIdentifier()()}.falseotherwise.
-
isIndoor
public boolean isIndoor()
Returns whether the POI is placed outside the building or not.- Returns:
trueif it's inside.falseotherwise.
-
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
-
-