public class IAPOI
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
IAPOI.Builder
Builder to configure
IAPOI . |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<IAPOI> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
IAPOI(android.os.Parcel in)
Do not use this constructor directly.
|
|
IAPOI(java.lang.String id,
int floor,
IALatLng location,
java.lang.String name,
org.json.JSONObject payload)
Construct a Point of Interest (POI)
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
int |
getFloor()
Return the
int floor number for this POI |
java.lang.String |
getId()
Return the identifier for this POI
|
IALatLng |
getLocation()
Return the WGS84 (latitude, longitude) coordinate of this POI
|
java.lang.String |
getName()
Return name of this POI.
|
org.json.JSONObject |
getPayload()
Return the
JSONObject payload for this POI. |
int |
hashCode() |
boolean |
hasPayload()
Check whether this POI has a non-empty payload
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final android.os.Parcelable.Creator<IAPOI> CREATOR
public IAPOI(java.lang.String id, int floor, IALatLng location, java.lang.String name, org.json.JSONObject payload)
id
- unique IDfloor
- floor numberlocation
- coordinatesname
- name of POI (optional)payload
- JSON payload (optional)protected IAPOI(android.os.Parcel in)
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String getId()
public int getFloor()
int
floor number for this POIpublic IALatLng getLocation()
public java.lang.String getName()
public org.json.JSONObject getPayload()
JSONObject
payload for this POI. Empty object if not available.public boolean hasPayload()
getPayload()
public int describeContents()
describeContents
in interface android.os.Parcelable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object