public final class Address extends Object
{
"place_id": "49135222",
"licence": "Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.",
"osm_type": "way",
"osm_id": "42928962",
"boundingbox": [
"48.1190567016602",
"48.1191635131836",
"-1.6499342918396",
"-1.64988231658936"
],
"polygonpoints": [
[
"34.50669",
"28.0885916"
],
[
"34.5183936",
"28.1684821"
]
],
"lat": "48.11911095",
"lon": "-1.6499083",
"display_name": "Boulevard de Vitré, Jeanne d'Arc, Rennes, Britanny, 35042, France",
"class": "highway",
"type": "primary",
"address": {
"road": "Boulevard de Vitré",
"suburb": "Jeanne d'Arc",
"city": "Rennes",
"administrative": "Rennes",
"state": "Britanny",
"postcode": "35042",
"country": "France",
"country_code": "fr"
}
},
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
Element[] |
getAddressElements()
Gets the elements describing the address (ex: road, city, coutry...).
|
BoundingBox |
getBoundingBox()
Gets the bounding box enclosing the element.
|
String |
getDisplayName()
Gets the address display name.
|
String |
getElementClass()
Gets the OpenStreetMap element class (ex: highway).
|
String |
getElementType()
Gets the penStreetMap element type (ex: residential).
|
com.vividsolutions.jts.geom.Geometry |
getGeojson() |
double |
getImportance()
Gets the address importance.
|
double |
getLatitude()
Gets the address latitude.
|
int |
getLatitudeE6()
Gets the address latitude.
|
String |
getLicence()
Gets the data licence.
|
double |
getLongitude()
Gets the address longitude.
|
int |
getLongitudeE6()
Gets the address longitude.
|
Element[] |
getNameDetails()
Sets the elements describing the namedetails (ex: name, operator, short name...).
|
String |
getOsmId()
Gets the OpenStreetMap identifier.
|
String |
getOsmType()
Gets the OpenStreetMap type.
|
long |
getPlaceId()
Gets the OpenStreetMap place id.
|
int |
getPlaceRank()
Gets the elements rank (ex: 30 = building).
|
PolygonPoint[] |
getPolygonPoints()
Gets the polygon points representing the element.
|
String |
getWkt()
Gets polygon's WKT string.
|
void |
setAddressElements(Element[] addressElements)
Sets the elements describing the address (ex: road, city, coutry...).
|
void |
setBoundingBox(BoundingBox boundingBox)
Sets the bounding box enclosing the element.
|
void |
setDisplayName(String displayName)
Sets the address display name.
|
void |
setElementClass(String elementClass)
Sets the OpenStreetMap element class (ex: highway).
|
void |
setElementType(String elementType)
Sets the penStreetMap element type (ex: residential).
|
void |
setGeojson(com.vividsolutions.jts.geom.Geometry geojson) |
void |
setImportance(double importance)
Gets the address importance.
|
void |
setLatitude(double latitude)
Sets the address latitude.
|
void |
setLatitudeE6(int latitude)
Sets the address latitude.
|
void |
setLicence(String licence)
Sets the data licence.
|
void |
setLongitude(double longitude)
Sets the address longitude.
|
void |
setLongitudeE6(int longitude)
Sets the address longitude.
|
void |
setNameDetails(Element[] namedetails)
Sets the elements describing the namedetails (ex: name, operator, short name...).
|
void |
setOsmId(String osmId)
Sets the OpenStreetMap identifier.
|
void |
setOsmType(String osmType)
Sets the OpenStreetMap type.
|
void |
setPlaceId(long placeId)
Sets the OpenStreetMap place id.
|
void |
setPlaceRank(int placeRank)
Sets the elements rank (ex: 30 = building).
|
void |
setPolygonPoints(PolygonPoint[] polygonPoints)
Sets the polygon points representing the element.
|
String |
setWkt(String wkt)
Sets a polygon's WKT string.
|
public long getPlaceId()
public void setPlaceId(long placeId)
placeId - the OpenStreetMap place id to setpublic String getLicence()
public void setLicence(String licence)
licence - the data licence to setpublic String getOsmType()
public void setOsmType(String osmType)
osmType - the OpenStreetMap type to setpublic String getOsmId()
public void setOsmId(String osmId)
osmId - the OpenStreetMap identifier to setpublic BoundingBox getBoundingBox()
public void setBoundingBox(BoundingBox boundingBox)
boundingBox - the bounding box enclosing the element to setpublic PolygonPoint[] getPolygonPoints()
public void setPolygonPoints(PolygonPoint[] polygonPoints)
polygonPoints - the polygon points representing the element to setpublic com.vividsolutions.jts.geom.Geometry getGeojson()
public void setGeojson(com.vividsolutions.jts.geom.Geometry geojson)
geojson - the geojson to setpublic double getLongitude()
public int getLongitudeE6()
public void setLongitude(double longitude)
longitude - the address longitude to setpublic void setLongitudeE6(int longitude)
longitude - the address longitude to setpublic double getLatitude()
public int getLatitudeE6()
public void setLatitude(double latitude)
latitude - the address latitude to setpublic void setLatitudeE6(int latitude)
latitude - the address latitude to setpublic String getDisplayName()
public void setDisplayName(String displayName)
displayName - the address display name to setpublic String getElementClass()
public void setElementClass(String elementClass)
elementClass - the OpenStreetMap element class (ex: highway) to setpublic String getElementType()
public void setElementType(String elementType)
elementType - the penStreetMap element type (ex: residential) to setpublic Element[] getAddressElements()
public void setAddressElements(Element[] addressElements)
addressElements - the elements describing the address (ex: road, city, coutry...) to setpublic Element[] getNameDetails()
public void setNameDetails(Element[] namedetails)
namedetails - the elements describing the namedetails (ex: name, operator, short name...)public int getPlaceRank()
public void setPlaceRank(int placeRank)
rank - the elements elements rank (ex: 30 = building) to setpublic double getImportance()
public void setImportance(double importance)
public String getWkt()
Copyright © 2010-2017 Dudie. All Rights Reserved.