SearchAddress

class SearchAddress @JvmOverloads constructor(val houseNumber: String? = null, val street: String? = null, val neighborhood: String? = null, val locality: String? = null, val postcode: String? = null, val place: String? = null, val district: String? = null, val region: String? = null, val country: String? = null) : Parcelable

Represents address of the search result.

Constructors

Link copied to clipboard
fun SearchAddress(houseNumber: String? = null, street: String? = null, neighborhood: String? = null, locality: String? = null, postcode: String? = null, place: String? = null, district: String? = null, region: String? = null, country: String? = null)

Types

Link copied to clipboard
class Builder

Builder for comfortable creation of SearchAddress instance.

Link copied to clipboard

Values for specifying the portions of the address to be included in the formatted address string.

Link copied to clipboard
abstract class FormatStyle

Describes how detailed should be formatted address in string representation.

Functions

Link copied to clipboard
fun copy(houseNumber: String? = this.houseNumber, street: String? = this.street, neighborhood: String? = this.neighborhood, locality: String? = this.locality, postcode: String? = this.postcode, place: String? = this.place, district: String? = this.district, region: String? = this.region, country: String? = this.country): SearchAddress

Creates new SearchAddress from current instance.

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard

Formats address. Note that this function doesn't take into account locale and just concatenates address parts separated by a comma. The parts of the address used for formatting are determined by the formatting style.

Link copied to clipboard

Creates new SearchAddress.Builder from current SearchAddress instance.

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

Properties

Link copied to clipboard
val country: String? = null

Address country.

Link copied to clipboard
val district: String? = null

Address district.

Link copied to clipboard
val houseNumber: String? = null

Address house number.

Link copied to clipboard
val locality: String? = null

Address locality.

Link copied to clipboard
val neighborhood: String? = null

Address neighborhood.

Link copied to clipboard
val place: String? = null

Address place.

Link copied to clipboard
val postcode: String? = null

Address postcode.

Link copied to clipboard
val region: String? = null

Address region.

Link copied to clipboard
val street: String? = null

Address street.