public class Element extends Object
Address element returned from the OpenStreetMap Nominatim API looks like the following:
{
"road": "Boulevard de Vitré",
"suburb": "Jeanne d'Arc",
"city": "Rennes",
"administrative": "Rennes",
"state": "Britanny",
"postcode": "35042",
"country": "France",
"country_code": "fr"
}
NameDetails element returned from the OpenStreetMap Nominatim API looks like the following:
{
"name":"Pałac Kultury i Nauki","name:de":"Kultur- und Wissenschaftspalast",
"name:en":"Palace of Culture and Science",
(...)
"name:hu":"Kultúra és Tudomány Palotája","name:ru":"Дворец культуры и науки",
"alt_name":"Pałac Młodzieży",
"short_name":"PKiN"}
Keys can't be enumerated entirely, so the java representation is a list of multiple
Elements.public final String getKey()
public final void setKey(String key)
key - the key to setpublic final String getValue()
public final void setValue(String value)
value - the value to setCopyright © 2010-2017 Dudie. All Rights Reserved.