Address

@Serializable
data class Address(val poBox: String? = null, val thoroughfare: String? = null, val locatorDesignator: String? = null, val postCode: String? = null, val postName: String? = null, val adminUnitLevel1: String? = null, val adminUnitLevel2: String? = null)(source)

Constructors

Link copied to clipboard
constructor(poBox: String? = null, thoroughfare: String? = null, locatorDesignator: String? = null, postCode: String? = null, postName: String? = null, adminUnitLevel1: String? = null, adminUnitLevel2: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "admin_unit_L1")
val adminUnitLevel1: String? = null

Name of the uppermost level of the address. Almost always this is a country, which then must be the Aplha-2 country code as specified in ISO 3166-1.

Link copied to clipboard
@SerialName(value = "admin_unit_L2")
val adminUnitLevel2: String? = null

Name of a secondary level/region of the address. This is usually a county, state, region, province or other such area that typically encompasses several localities

Link copied to clipboard
@SerialName(value = "locator_designator")
val locatorDesignator: String? = null

Number or sequence of characters that uniquely identifies the locator within the relevant scope (building number, apartment number, etc). For an address such as "Flat 3, 17 Bridge Street", the locator is "flat 3, 17".

Link copied to clipboard
@SerialName(value = "po_box")
val poBox: String? = null

A location designator for a postal delivery point at a post office, usually a number (ex: “9383”).

Link copied to clipboard
@SerialName(value = "post_code")
val postCode: String? = null

Code created and maintained for postal purposes to identify a subdivision of addresses and postal delivery points (ex: “7500”).

Link copied to clipboard
@SerialName(value = "post_name")
val postName: String? = null

Name created and maintained for postal purposes to identify a subdivision of addresses and postal delivery points (ex: “Paris”).

Link copied to clipboard
@SerialName(value = "thoroughfare")
val thoroughfare: String? = null

The name of a passage or way through from one location to another. A thoroughfare is usually a street.