SearchAddress

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

Represents address of the search result.

Constructors

SearchAddress
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

Builder
Link copied to clipboard
class Builder
Builder for comfortable creation of SearchAddress instance.
FormatComponent
Link copied to clipboard
class FormatComponent
Values for specifying the portions of the address to be included in the formatted address string.
FormatStyle
Link copied to clipboard
abstract class FormatStyle
Describes how detailed should be formatted address in string representation.

Functions

copy
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.
describeContents
Link copied to clipboard
abstract fun describeContents(): Int
formattedAddress
Link copied to clipboard
fun formattedAddress(style: SearchAddress.FormatStyle = FormatStyle.Medium): String?
Formats address.
toBuilder
Link copied to clipboard
fun toBuilder(): SearchAddress.Builder
Creates new SearchAddress.Builder from current SearchAddress instance.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

country
Link copied to clipboard
val country: String? = null
Address country.
district
Link copied to clipboard
val district: String? = null
Address district.
houseNumber
Link copied to clipboard
val houseNumber: String? = null
Address house number.
locality
Link copied to clipboard
val locality: String? = null
Address locality.
neighborhood
Link copied to clipboard
val neighborhood: String? = null
Address neighborhood.
place
Link copied to clipboard
val place: String? = null
Address place.
postcode
Link copied to clipboard
val postcode: String? = null
Address postcode.
region
Link copied to clipboard
val region: String? = null
Address region.
street
Link copied to clipboard
val street: String? = null
Address street.