public class Place
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE
String containing the Place type
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBuilding()
Getter for the building ID in which the place belongs.
|
java.lang.String |
getFloor()
Getter for the floor ID in which the place belongs.
|
int |
getFloorNumber()
Getter for the floor number in which the place belongs.
|
Geometry |
getGeometry()
Getter for the Place geometry.
|
java.lang.String |
getId()
Getter for the Area ID.
|
double |
getLatitude()
Getter for the Place latitude.
|
double |
getLongitude()
Getter for the Place longitude.
|
java.lang.String |
getName()
Getter for the Place name
|
java.util.HashMap<java.lang.String,java.lang.String> |
getProperties()
Getter for the properties.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getPropertiesList()
Deprecated.
Use
getProperties() instead. |
java.util.ArrayList<java.lang.String> |
getTags()
Getter for the tags.
|
java.lang.String |
getType()
Deprecated.
|
double |
getX()
Deprecated.
Use
getLongitude() instead. |
double |
getY()
Deprecated.
Use
getLatitude() instead. |
void |
setBuilding(java.lang.String building)
Setter for the building ID in which the place belongs.
|
void |
setFloor(java.lang.String floor)
Setter for the floor ID in which the place belongs.
|
void |
setFloorNumber(int floorNumber)
Setter for the floor number in which the place belongs.
|
void |
setGeometry(Geometry geometry)
Setter for the Place geometry.
|
void |
setId(java.lang.String id)
Setter for the Place ID.
|
void |
setLatitude(double lat)
Setter for the Place latitude.
|
void |
setLongitude(double lon)
Setter for the Place longitude.
|
void |
setName(java.lang.String name)
Setter for the Place name.
|
void |
setType(java.lang.String type)
Deprecated.
|
void |
setX(double x)
Deprecated.
Use
setLongitude(double) instead. |
void |
setY(double y)
Deprecated.
Use
setLatitude(double) instead. |
java.lang.String |
toJson()
This method provides compatibility by returning relevant info into a
JSON String.
|
public static final java.lang.String TYPE
public java.lang.String toJson()
public java.lang.String getId()
public void setId(java.lang.String id)
id
- The place ID to be setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The place name to be setpublic java.lang.String getBuilding()
public void setBuilding(java.lang.String building)
building
- The building ID to be setpublic java.lang.String getFloor()
public void setFloor(java.lang.String floor)
floor
- The floor ID to be setpublic int getFloorNumber()
public void setFloorNumber(int floorNumber)
floorNumber
- The floor number to be setpublic Geometry getGeometry()
public void setGeometry(Geometry geometry)
geometry
- The geometry to be set@Deprecated public java.lang.String getType()
@Deprecated public void setType(java.lang.String type)
type
- The place type to be setpublic double getLatitude()
public void setLatitude(double lat)
lat
- The place latitude to be setpublic double getLongitude()
public void setLongitude(double lon)
lon
- The place longitude to be set@Deprecated public double getY()
getLatitude()
instead.@Deprecated public void setY(double y)
setLatitude(double)
instead.y
- The place latitude to be set@Deprecated public double getX()
getLongitude()
instead.@Deprecated public void setX(double x)
setLongitude(double)
instead.x
- The place longitude to be setpublic java.util.ArrayList<java.lang.String> getTags()
public java.util.HashMap<java.lang.String,java.lang.String> getProperties()
@Deprecated public java.util.HashMap<java.lang.String,java.lang.String> getPropertiesList()
getProperties()
instead.