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 |
|---|---|
AddressElement[] |
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).
|
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.
|
String |
getOsmId()
Gets the OpenStreetMap identifier.
|
String |
getOsmType()
Gets the OpenStreetMap type.
|
long |
getPlaceId()
Gets the OpenStreetMap place id.
|
PolygonPoint[] |
getPolygonPoints()
Gets the polygon points representing the element.
|
void |
setAddressElements(AddressElement[] 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 |
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 |
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 |
setPolygonPoints(PolygonPoint[] polygonPoints)
Sets the polygon points representing the element.
|
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 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 AddressElement[] getAddressElements()
public void setAddressElements(AddressElement[] addressElements)
address - the elements describing the address (ex: road, city, coutry...) to setCopyright © 2013. All Rights Reserved.