Address

data class Address(val postalCode: String, val countryCode: String, val address1: String = "", val address2: String = "", val address3: String = "", val locality: String = "", val administrativeArea: String = "", val sortingCode: String = "") : Parcelable

Class to represent an address.

Note: The fields on this class map to Google's Address response object.

Constructors

Link copied to clipboard
constructor(postalCode: String, countryCode: String, address1: String = "", address2: String = "", address3: String = "", locality: String = "", administrativeArea: String = "", sortingCode: String = "")

Properties

Link copied to clipboard

The first line of the address

Link copied to clipboard

The second line of the address

Link copied to clipboard

The third line of the address

Link copied to clipboard

A country subdivision, such as a state or province

Link copied to clipboard

The ISO 3166-1 alpha-2 country code

Link copied to clipboard

The city, town, neighborhood, or suburb

Link copied to clipboard

The postal or zip code

Link copied to clipboard

The sorting code

Functions

Link copied to clipboard
fun toString(indentSpaces: Int = 0): String