com.esri.core.tasks.bing.geocode
Class BingAddress

java.lang.Object
  extended by com.esri.core.tasks.bing.geocode.BingAddress
All Implemented Interfaces:
Serializable

public class BingAddress
extends Object
implements Serializable

Class containing the information for an address as defined by Bing Maps Locations service.

Please refer to the following page for more information: http://msdn.microsoft.com/en-us/library/ff701714.aspx

See Also:
Serialized Form

Constructor Summary
BingAddress()
          Basic constructor
BingAddress(String addressLine, String adminDistrict, String adminDistrict2, String countryRegion, String locality, String postalCode)
          Constructor taking every components of a Bing Maps address as parameters.
 
Method Summary
 boolean equals(Object obj)
           
 String getAddressLine()
          Returns the address line
 String getAdminDistrict()
          Returns the admin district
 String getAdminDistrict2()
          Returns the admin district 2.
 String getCountryRegion()
          Returns the country/region
 String getFormattedAddress()
          Returns the formatted address.
 String getLocality()
          Returns the locality.
 String getPostalCode()
          Returns the postal code.
 int hashCode()
           
 void setAddressLine(String addressLine)
          Sets the address line
 void setAdminDistrict(String adminDistrict)
          Sets the admin district
 void setAdminDistrict2(String adminDistrict2)
          Sets the admin district 2
 void setCountryRegion(String countryRegion)
          Sets the country region
 void setLocality(String locality)
          Sets the locality.
 void setPostalCode(String postalCode)
          Sets the postal code.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BingAddress

public BingAddress()
Basic constructor


BingAddress

public BingAddress(String addressLine,
                   String adminDistrict,
                   String adminDistrict2,
                   String countryRegion,
                   String locality,
                   String postalCode)
Constructor taking every components of a Bing Maps address as parameters. (the formatted address is an output-only component of the address)

Parameters:
addressLine - the address line
adminDistrict - the admin district
adminDistrict2 - the admin district 2
countryRegion - the country/region
locality - the locality
postalCode - the postal code
Method Detail

getAddressLine

public String getAddressLine()
Returns the address line

Returns:
the address line

setAddressLine

public void setAddressLine(String addressLine)
Sets the address line

Parameters:
addressLine - an address line

getAdminDistrict

public String getAdminDistrict()
Returns the admin district

Returns:
the admin district

setAdminDistrict

public void setAdminDistrict(String adminDistrict)
Sets the admin district

Parameters:
adminDistrict - an admin district

getCountryRegion

public String getCountryRegion()
Returns the country/region

Returns:
the country or region

setCountryRegion

public void setCountryRegion(String countryRegion)
Sets the country region

Parameters:
countryRegion - a country/region

getAdminDistrict2

public String getAdminDistrict2()
Returns the admin district 2.

Returns:
the admin district 2

setAdminDistrict2

public void setAdminDistrict2(String adminDistrict2)
Sets the admin district 2

Parameters:
adminDistrict - an admin district 2

getFormattedAddress

public String getFormattedAddress()
Returns the formatted address.

Returns:
the formatted address

getLocality

public String getLocality()
Returns the locality.

Returns:
the locality

setLocality

public void setLocality(String locality)
Sets the locality.

Parameters:
locality - a locality

getPostalCode

public String getPostalCode()
Returns the postal code.

Returns:
the postal code

setPostalCode

public void setPostalCode(String postalCode)
Sets the postal code.

Parameters:
postalCode - a postal code

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.