Package com.google.maps.model
Class AddressComponent
- java.lang.Object
-
- com.google.maps.model.AddressComponent
-
- All Implemented Interfaces:
java.io.Serializable
public class AddressComponent extends java.lang.Object implements java.io.Serializable
The parts of an address.See Address Types and Address Component Types in the Google Maps Geocoding API Developer's Guide for more detail.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
longName
The full text description or name of the address component as returned by the Geocoder.java.lang.String
shortName
An abbreviated textual name for the address component, if available.AddressComponentType[]
types
Indicates the type of each part of the address.
-
Constructor Summary
Constructors Constructor Description AddressComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
longName
public java.lang.String longName
The full text description or name of the address component as returned by the Geocoder.
-
shortName
public java.lang.String shortName
An abbreviated textual name for the address component, if available. For example, an address component for the state of Alaska may have a longName of "Alaska" and a shortName of "AK" using the 2-letter postal abbreviation.
-
types
public AddressComponentType[] types
Indicates the type of each part of the address. Examples include street number or country.
-
-