public interface Address
Routeable interface| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getAddress()
Get the address object.
|
org.json.JSONObject getAddress()
Format of the JSON address object (all values are stored as String objects)
{
house_number : "<The house number>",
street : "<The street>",
city : "<The city>",
postal_code : "<The postal (or zip) code>",
country : "<The country name (localized to the current device language)>",
country_code : "<The current country ISO 3166-1 alpha-3 code>",
province : "<The province>",
state : "<The state>",
state_code : "<The state code>",
county : "<The county>",
district : "<The house-number>",
locality : "<The locality>",
building_name : "<The building-name>",
apartment_name : "<The apartment-name>"
}
Attributes
house_number —
The house number of the address, null if unknown.
street —
The street name of the address, null if unknown.
city —
The city name of the address, null if unknown.
postal_code —
The postal (or zip for US) code of the address, for example "11157", or null if unknown.
country —
The country name of the address, for example "Netherlands", or null if unknown. This is localized to the current device language.
country_code —
The country code of the address, returned as a ISO 3166-1 alpha-3 code, for example "GBR", or null if unknown. For example
province —
The province of the address, null if unknown.
state —
The state of the address, null if unknown.
state_code —
The state code of the address, null if unknown. For most countries this maps to the ISO3166-2 standard, but the returned value is not guaranteed to match this.
county —
The county of the address, null if unknown.
district —
The district of the address, null if unknown.
locality —
The locality of the address, null if unknown.
building_name —
The building name of the address, null if unknown.
apartment_name —
The apartment name of the address, null if unknown.