public class GeolocItem extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_GEOMETRY |
static String |
PATH_GEOMETRY_COORDINATES |
static String |
PATH_GEOMETRY_TYPE |
static String |
PATH_PROPERTIES |
static String |
PATH_PROPERTIES_ADDRESS |
static String |
PATH_PROPERTIES_ICON |
static String |
PATH_PROPERTIES_LAYER |
static String |
PATH_TYPE |
static String |
VALUE_GEOMETRY_TYPE |
static String |
VALUE_TYPE |
static String |
XML_ADDRESS |
static String |
XML_ICON |
static String |
XML_LAT |
static String |
XML_LAYER |
static String |
XML_LON |
static String |
XML_ROOT |
| Constructor and Description |
|---|
GeolocItem() |
| Modifier and Type | Method and Description |
|---|---|
static GeolocItem |
fromJSON(String strJson)
Parses a geojson string to build a GeolocItem Object.
|
String |
getAddress()
Returns the Address
|
Map<String,Object> |
getGeometry()
Returns the Geometry
|
String |
getIcon()
Returns the Icon
|
double |
getLat()
Returns the Lat
|
String |
getLayer()
Returns the Layer
|
double |
getLon()
Returns the Lon
|
List<Double> |
getLonLat()
Returns the LonLat
|
Map<String,Object> |
getProperties()
Returns the Properties
|
String |
getType()
Returns the Type
|
void |
setGeometry(Map<String,Object> geometry)
Sets the Geometry
|
void |
setIcon(String icon)
Sets the Icon
|
void |
setProperties(Map<String,Object> properties)
Sets the Properties
|
String |
toJSON()
Writes the geojson to a String
|
String |
toXML()
Writes the xml to a String.
|
public static final String PATH_TYPE
public static final String PATH_GEOMETRY
public static final String PATH_GEOMETRY_TYPE
public static final String PATH_GEOMETRY_COORDINATES
public static final String PATH_PROPERTIES
public static final String PATH_PROPERTIES_ADDRESS
public static final String PATH_PROPERTIES_ICON
public static final String PATH_PROPERTIES_LAYER
public static final String XML_ROOT
public static final String XML_LON
public static final String XML_LAT
public static final String XML_ADDRESS
public static final String XML_ICON
public static final String XML_LAYER
public static final String VALUE_TYPE
public static final String VALUE_GEOMETRY_TYPE
public void setGeometry(Map<String,Object> geometry)
geometry - the geometrypublic void setProperties(Map<String,Object> properties)
properties - the geometrypublic String getType()
public Map<String,Object> getProperties()
public double getLon()
public double getLat()
public String getAddress()
public String getIcon()
public String getLayer()
public void setIcon(String icon)
icon - the iconpublic String toJSON()
public String toXML()
public static GeolocItem fromJSON(String strJson) throws org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionIOExceptionCopyright © 2022 City of Paris. All rights reserved.