geo.google.datamodel
Class GeoUsAddress
java.lang.Object
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
GeoUsAddress
public GeoUsAddress()
GeoUsAddress
public GeoUsAddress(String addressLine1,
String addressLine2,
String city,
String county,
String state,
String postalCode,
String country,
GeoCoordinate coordinate,
GeoAddressAccuracy accuracy)
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.