AddressComponent

public abstract class AddressComponent extends Object
implements Parcelable

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

Nested Class Summary

class AddressComponent.Builder Builder for AddressComponent

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static AddressComponent.Builder
abstract String
getName()
Name of the address component, e.g.
abstract String
getShortName()
Short name of the address component, e.g.
abstract List<String>
getTypes()
Types of the AddressComponent.

Inherited Method Summary

Public Constructors

public AddressComponent ()

Public Methods

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

Parameters
name
types

public abstract String getName ()

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

public abstract String getShortName ()

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

public abstract List<String> getTypes ()

Types of the AddressComponent.

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