Address

data class Address(    val country: String? = null,     val countryId: CountryId? = null,     val state: String? = null,     val stateCode: String? = null,     val city: String? = null,     val cityDistrict: String? = null,     val cityBlock: String? = null,     val houseNumber: String? = null,     val streetName: String? = null,     val buildingName: String? = null,     val floor: String? = null,     val door: String? = null,     val postalCode: String? = null,     val extendedPostalCode: String? = null,     val formattedAddress: String? = null) : Parcelable

Class to hold information about an address.

Parameters

country

The full name of the country.

countryId

The country ISO 3166 alpha code CountryId.

state

The state. It might be empty as the map data may not include it for all countries.

stateCode

The ISO 3166-2 sub-country code. Depending on countries it corresponds to a state, province, territory, etc. It may be empty as map data may not populate it for all countries.

city

The city.

cityDistrict

The city district.

cityBlock

The city block.

houseNumber

The house number.

streetName

The street name.

buildingName

The building name.

floor

The floor where the address is located at.

door

The door (e.g. apartment number).

postalCode

The postal code.

extendedPostalCode

The extended postal code.

formattedAddress

The formatted address, can be country dependent.

Constructors

Link copied to clipboard
fun Address(    country: String? = null,     countryId: CountryId? = null,     state: String? = null,     stateCode: String? = null,     city: String? = null,     cityDistrict: String? = null,     cityBlock: String? = null,     houseNumber: String? = null,     streetName: String? = null,     buildingName: String? = null,     floor: String? = null,     door: String? = null,     postalCode: String? = null,     extendedPostalCode: String? = null,     formattedAddress: String? = null)

Properties

Link copied to clipboard
val buildingName: String? = null
Link copied to clipboard
val city: String? = null
Link copied to clipboard
val cityBlock: String? = null
Link copied to clipboard
val cityDistrict: String? = null
Link copied to clipboard
val country: String? = null
Link copied to clipboard
val countryId: CountryId? = null
Link copied to clipboard
val door: String? = null
Link copied to clipboard
val extendedPostalCode: String? = null
Link copied to clipboard
val floor: String? = null
Link copied to clipboard
val formattedAddress: String? = null
Link copied to clipboard
val houseNumber: String? = null
Link copied to clipboard
val postalCode: String? = null
Link copied to clipboard
val state: String? = null
Link copied to clipboard
val stateCode: String? = null
Link copied to clipboard
val streetName: String? = null

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)