AddressComponent

public abstract class AddressComponent implements Parcelable


Represents a component of an address, e.g., street number, postcode, city, etc.

Summary

Nested types

public abstract class AddressComponent.Builder

Builder for AddressComponent.

Public constructors

Public methods

static AddressComponent.Builder
builder(String name, List<String> types)

Returns an Builder

abstract String

Name of the address component, e.g. "Sydney".

abstract @Nullable String

Short name of the address component, e.g. "AU".

abstract List<String>

Types of the AddressComponent.

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

AddressComponent

public AddressComponent()

Public methods

builder

public static AddressComponent.Builder builder(String name, List<String> types)

Returns an Builder

getName

public abstract String getName()

Name of the address component, e.g. "Sydney".

getShortName

public abstract @Nullable String getShortName()

Short name of the address component, e.g. "AU".

getTypes

public abstract List<StringgetTypes()

Types of the AddressComponent.

For a list of supported types, see Address Component Types.