geo.google.datamodel
Class GeoUsAddress

java.lang.Object
  extended by geo.google.datamodel.GeoUsAddress
All Implemented Interfaces:
Serializable

public class GeoUsAddress
extends Object
implements Serializable

A simple data class for US address info.

Author:
jliang
See Also:
GeoAddress, Serialized Form

Constructor Summary
GeoUsAddress()
           
GeoUsAddress(String addressLine1, String addressLine2, String city, String county, String state, String postalCode, String country, GeoCoordinate coordinate, GeoAddressAccuracy accuracy)
           
 
Method Summary
 boolean equals(Object o)
           
 GeoAddressAccuracy getAccuracy()
           
 String getAddressLine1()
           
 String getAddressLine2()
           
 String getCity()
           
 GeoCoordinate getCoordinate()
           
 String getCountry()
           
 String getCounty()
           
 String getPostalCode()
           
 String getState()
           
 int hashCode()
           
 void setAccuracy(GeoAddressAccuracy accuracy)
           
 void setAddressLine1(String addressLine1)
           
 void setAddressLine2(String addressLine2)
           
 void setCity(String city)
           
 void setCoordinate(GeoCoordinate coordinate)
           
 void setCountry(String country)
           
 void setCounty(String county)
           
 void setPostalCode(String postalCode)
           
 void setState(String state)
           
 String toAddressLine()
          Return a single line representation of this address in the format of:
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoUsAddress

public GeoUsAddress()

GeoUsAddress

public GeoUsAddress(String addressLine1,
                    String addressLine2,
                    String city,
                    String county,
                    String state,
                    String postalCode,
                    String country,
                    GeoCoordinate coordinate,
                    GeoAddressAccuracy accuracy)
Method Detail

getAddressLine1

public String getAddressLine1()

setAddressLine1

public void setAddressLine1(String addressLine1)

getAddressLine2

public String getAddressLine2()

setAddressLine2

public void setAddressLine2(String addressLine2)

getCity

public String getCity()

setCity

public void setCity(String city)

getCounty

public String getCounty()

setCounty

public void setCounty(String county)

getPostalCode

public String getPostalCode()

setPostalCode

public void setPostalCode(String postalCode)

getState

public String getState()

setState

public void setState(String state)

getCountry

public String getCountry()

setCountry

public void setCountry(String country)

getCoordinate

public GeoCoordinate getCoordinate()

setCoordinate

public void setCoordinate(GeoCoordinate coordinate)

getAccuracy

public GeoAddressAccuracy getAccuracy()

setAccuracy

public void setAccuracy(GeoAddressAccuracy accuracy)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toAddressLine

public String toAddressLine()
Return a single line representation of this address in the format of:
 <addressLine1>, <city>, <state> <postalCode>
 
The standardizer will send this address line string to google's geocode service. Extend this class and override this method if it needs to be encoded differently.



Copyright © 2008. All Rights Reserved.