Package ai.nextbillion.maps.model
Class AddressComponent
java.lang.Object
ai.nextbillion.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.StringlongNameThe full text description or name of the address component as returned by the Geocoder.java.lang.StringshortNameAn abbreviated textual name for the address component, if available.AddressComponentType[]typesIndicates the type of each part of the address. -
Constructor Summary
Constructors Constructor Description AddressComponent() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
longName
public java.lang.String longNameThe full text description or name of the address component as returned by the Geocoder. -
shortName
public java.lang.String shortNameAn 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
Indicates the type of each part of the address. Examples include street number or country.
-
-
Constructor Details
-
AddressComponent
public AddressComponent()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-