Class Placemark
java.lang.Object
com.arubanetworks.meridian.editor.Placemark
- All Implemented Interfaces:
Serializable
Container for a Meridian Placemark and its related fields
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacemarkfromClientLocationDataJSON(org.json.JSONObject json, EditorKey appKey) Static initializer for creating a Placemark from its json representation with extra location data.fromJSONArray(org.json.JSONArray json, String locationId) Static initializer for creating an List of Placemarks from its json representation.static PlacemarkfromJSONObject(org.json.JSONObject json, String locationId) Static initializer for creating a Placemark from its json representation.static PlacemarkfromJSONObjectAndAppKey(org.json.JSONObject json, EditorKey appKey) Static initializer for creating a Placemark from its json representation.getArea()The area on its parent Meridian Map that this placemark represents.intgetColor()The shading color of this placemark, this is based on itstypeand should be used to color any UI representing this placemark.android.location.LocationGets Location object containing latitude and longitude of the placemark if available.Returns the first custom field associated with this placemark.Returns the second custom field associated with this placemark.Returns the third custom field associated with this placemark.Returns the fourth custom field associated with this placemark.The human readable description of this PlacemarkgetEmail()Returns the email address associated with this placemark.Returns an image representing this placemark.getKey()Gets the Meridian EditorKey for this Placemark.intgetMajor()If this placemark represents a Beacon this will be the Beacon’s major identifier.The maximum zoom level that this placmark should be visible at on its parent Meridian Map.intgetMinor()If this placemark represents a Beacon this will be the Beacon’s minor identifier.The minimum zoom level that this placmark should be visible at on its parent Meridian Map.getName()The human readable name of this Placemark (e.g.getPhone()Returns the phone number associated with this placemark.The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey.doubleIf this placemark represents a Beacon this will be the Beacon’s RSSI offset.getType()The Meridian Placemark type of this placemark.Get the human readable type category of this Meridian placemark type.The Human readable name of this Meridian Placemark type.getUID()A unique identifier to link this placemark to objects outside of the Meridian Editor.getUrl()Returns the url associated with this placemark.floatgetX()This placemark’s x coordinate on its parent Meridian Map.floatgetY()This placemark’s y coordinate on its parent Meridian Map.booleanReturns true if the placemark is disabled.booleanReturns true if the placemark is a facility.booleanIndicates if the placemark should be visible on its parent Meridian Map.booleanReturns true if the placemark does not represent a point on a map.booleanIndicates if the placemark should be returned in search results.Gets the major/minor of this placemark if it represents a Beacon.voidSet the area on its parent Meridian Map that this placemark represents.voidsetColor(int color) Sets the shading color of this placemark.voidsetCoordinates(android.location.Location coordinates) Set this placemark’s coordinates (latitude & longitude).voidsetCustom1(String custom1) Sets the first custom field associated with this placemark.voidsetCustom2(String custom2) Sets the second custom field associated with this placemark.voidsetCustom3(String custom3) Sets the third custom field associated with this placemark.voidsetCustom4(String custom4) Sets the fourth custom field associated with this placemark.voidsetDescription(String description) Sets the human readable description of this PlacemarkvoidsetDisabled(boolean disabled) Sets if the placemark is disabled.voidSets the email address associated with this placemark.voidsetFacility(boolean facility) Sets if the placemark is a facility.voidsetHideOnMap(boolean hideOnMap) Sets if the placemark should be visible on its parent Meridian Map.voidsetImageLayout(String imageLayout) voidsetImageURL(String imageURL) Sets an image representing this placemark.voidsetIsSearchable(boolean isSearchable) Sets if the placemark should be returned in search results.voidSets the Meridian EditorKey for this Placemark.voidsetMajor(int major) If this placemark represents a Beacon this will set the Beacon’s major identifier.voidsetMaxZoomLevel(MapInfo.ZoomLevel maxZoomLevel) Sets the maximum zoom level that this placmark should be visible at on its parent Meridian Map.voidsetMinor(int minor) If this placemark represents a Beacon this will set the Beacon’s minor identifier.voidsetMinZoomLevel(MapInfo.ZoomLevel minZoomLevel) Sets the minimum zoom level that this placmark should be visible at on its parent Meridian Map.voidSets the human readable name of this Placemark (e.g.voidSets the phone number associated with this placemark.voidsetRelatedMapKey(EditorKey relatedMapKey) Sets the Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey.voidSets the Meridian Placemark type of this placemark.voidsetTypeCategory(String typeCategory) Sets the human readable type category of this Meridian placemark type.voidsetTypeName(String typeName) Sets the Human readable name of this Meridian Placemark type.voidSets the url associated with this placemark.voidsetX(float x) Set this placemark’s x coordinate on its parent Meridian Map.voidsetY(float y) Set this placemark’s y coordinate on its parent Meridian Map.org.json.JSONObjectConverts Placemark to its Client Location Data JSON representation data.toString()
-
Field Details
-
LAYOUT_WIDESCREEN
- See Also:
-
LAYOUT_FULL_PAGE
- See Also:
-
x
public float x -
y
public float y
-
-
Constructor Details
-
Placemark
public Placemark()An empty Placemark constructor.
-
-
Method Details
-
getKey
Gets the Meridian EditorKey for this Placemark. -
setKey
Sets the Meridian EditorKey for this Placemark. -
getRelatedMapKey
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey. -
setRelatedMapKey
Sets the Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey. -
getName
The human readable name of this Placemark (e.g.‘Joe’s Office’, ‘Fountain’)
-
setName
Sets the human readable name of this Placemark (e.g.‘Joe’s Office’, ‘Fountain’)
-
getDescription
The human readable description of this Placemark -
setDescription
Sets the human readable description of this Placemark -
getType
The Meridian Placemark type of this placemark.(e.g. ‘shop’, ’lounge)
-
setType
Sets the Meridian Placemark type of this placemark.(e.g. ‘shop’, ’lounge)
-
getTypeName
The Human readable name of this Meridian Placemark type. -
setTypeName
Sets the Human readable name of this Meridian Placemark type. -
getTypeCategory
Get the human readable type category of this Meridian placemark type. -
setTypeCategory
Sets the human readable type category of this Meridian placemark type. -
getUID
A unique identifier to link this placemark to objects outside of the Meridian Editor. -
getX
public float getX()This placemark’s x coordinate on its parent Meridian Map. -
setX
public void setX(float x) Set this placemark’s x coordinate on its parent Meridian Map. -
getY
public float getY()This placemark’s y coordinate on its parent Meridian Map. -
setY
public void setY(float y) Set this placemark’s y coordinate on its parent Meridian Map. -
getCoordinates
public android.location.Location getCoordinates()Gets Location object containing latitude and longitude of the placemark if available. -
setCoordinates
public void setCoordinates(android.location.Location coordinates) Set this placemark’s coordinates (latitude & longitude). -
getColor
public int getColor()The shading color of this placemark, this is based on itstypeand should be used to color any UI representing this placemark. -
setColor
public void setColor(int color) Sets the shading color of this placemark. -
getMaxZoomLevel
The maximum zoom level that this placmark should be visible at on its parent Meridian Map. -
setMaxZoomLevel
Sets the maximum zoom level that this placmark should be visible at on its parent Meridian Map. -
getMinZoomLevel
The minimum zoom level that this placmark should be visible at on its parent Meridian Map. -
setMinZoomLevel
Sets the minimum zoom level that this placmark should be visible at on its parent Meridian Map. -
isHideOnMap
public boolean isHideOnMap()Indicates if the placemark should be visible on its parent Meridian Map. -
setHideOnMap
public void setHideOnMap(boolean hideOnMap) Sets if the placemark should be visible on its parent Meridian Map. -
isSearchable
public boolean isSearchable()Indicates if the placemark should be returned in search results. -
setIsSearchable
public void setIsSearchable(boolean isSearchable) Sets if the placemark should be returned in search results. -
getMajor
public int getMajor()If this placemark represents a Beacon this will be the Beacon’s major identifier. -
setMajor
public void setMajor(int major) If this placemark represents a Beacon this will set the Beacon’s major identifier. -
getRSSIOffset
public double getRSSIOffset()If this placemark represents a Beacon this will be the Beacon’s RSSI offset. -
getMinor
public int getMinor()If this placemark represents a Beacon this will be the Beacon’s minor identifier. -
setMinor
public void setMinor(int minor) If this placemark represents a Beacon this will set the Beacon’s minor identifier. -
getArea
The area on its parent Meridian Map that this placemark represents. -
setArea
Set the area on its parent Meridian Map that this placemark represents. -
isFacility
public boolean isFacility()Returns true if the placemark is a facility. -
setFacility
public void setFacility(boolean facility) Sets if the placemark is a facility. -
isDisabled
public boolean isDisabled()Returns true if the placemark is disabled. -
setDisabled
public void setDisabled(boolean disabled) Sets if the placemark is disabled. -
getImageURL
Returns an image representing this placemark. -
setImageURL
Sets an image representing this placemark. -
getImageLayout
-
setImageLayout
-
getUrl
Returns the url associated with this placemark. -
setUrl
Sets the url associated with this placemark. -
getEmail
Returns the email address associated with this placemark. -
setEmail
Sets the email address associated with this placemark. -
getPhone
Returns the phone number associated with this placemark. -
setPhone
Sets the phone number associated with this placemark. -
getCustom1
Returns the first custom field associated with this placemark. -
setCustom1
Sets the first custom field associated with this placemark. -
getCustom2
Returns the second custom field associated with this placemark. -
setCustom2
Sets the second custom field associated with this placemark. -
getCustom3
Returns the third custom field associated with this placemark. -
setCustom3
Sets the third custom field associated with this placemark. -
getCustom4
Returns the fourth custom field associated with this placemark. -
setCustom4
Sets the fourth custom field associated with this placemark. -
fromJSONObjectAndAppKey
public static Placemark fromJSONObjectAndAppKey(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException Static initializer for creating a Placemark from its json representation.- Parameters:
json- A known json representation of the Placemark to be initialized.appKey- A known Meridian App key for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
org.json.JSONException- on JSON parsing error- See Also:
-
fromJSONObject
public static Placemark fromJSONObject(org.json.JSONObject json, String locationId) throws org.json.JSONException Static initializer for creating a Placemark from its json representation.- Parameters:
json- A known json representation of the Placemark to be initialized.locationId- A known Meridian location id for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
org.json.JSONException- on JSON parsing error- See Also:
-
fromClientLocationDataJSON
public static Placemark fromClientLocationDataJSON(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException Static initializer for creating a Placemark from its json representation with extra location data.- Parameters:
json- A known json representation of the Placemark to be initialized.appKey- A known Meridian App key for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
org.json.JSONException- on JSON parsing error- See Also:
-
toClientLocationDataJSONObject
public org.json.JSONObject toClientLocationDataJSONObject() throws org.json.JSONExceptionConverts Placemark to its Client Location Data JSON representation data.- Returns:
- The JSON representation.
- Throws:
org.json.JSONException- on JSON encoding error
-
fromJSONArray
public static List<Placemark> fromJSONArray(org.json.JSONArray json, String locationId) throws org.json.JSONException Static initializer for creating an List of Placemarks from its json representation.- Parameters:
json- A json representation of the Placemark List.locationId- A known Meridian location id for the placemarks in the list.- Returns:
- An initialized List of Placemarks.
- Throws:
org.json.JSONException- on JSON parsing error- See Also:
-
majorMinorString
Gets the major/minor of this placemark if it represents a Beacon. -
isInvalid
public boolean isInvalid()Returns true if the placemark does not represent a point on a map. -
toString
-