org.geonames
Class PostalCode

java.lang.Object
  extended by org.geonames.PostalCode
Direct Known Subclasses:
Address, StreetSegment

public class PostalCode
extends Object

a postal code

Author:
marc@geonames

Constructor Summary
PostalCode()
           
 
Method Summary
 String getAdminCode1()
           
 String getAdminCode2()
           
 String getAdminName1()
           
 String getAdminName2()
           
 String getCountryCode()
           
 double getDistance()
           
 double getLatitude()
          latitude in WGS84
 double getLongitude()
          longitude in WGS84
 String getPlaceName()
           
 String getPostalCode()
           
 void setAdminCode1(String adminCode1)
           
 void setAdminCode2(String adminCode2)
           
 void setAdminName1(String adminName1)
           
 void setAdminName2(String adminName2)
           
 void setCountryCode(String countryCode)
           
 void setDistance(double distance)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setPlaceName(String placeName)
           
 void setPostalCode(String postalCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostalCode

public PostalCode()
Method Detail

getDistance

public double getDistance()
Returns:
Returns the distance.

setDistance

public void setDistance(double distance)
Parameters:
distance - The distance to set.

getAdminCode1

public String getAdminCode1()
Returns:
Returns the adminCode1.

setAdminCode1

public void setAdminCode1(String adminCode1)
Parameters:
adminCode1 - The adminCode1 to set.

getAdminCode2

public String getAdminCode2()
Returns:
Returns the adminCode2.

setAdminCode2

public void setAdminCode2(String adminCode2)
Parameters:
adminCode2 - The adminCode2 to set.

getAdminName1

public String getAdminName1()
Returns:
Returns the adminName1.

setAdminName1

public void setAdminName1(String adminName1)
Parameters:
adminName1 - The adminName1 to set.

getAdminName2

public String getAdminName2()
Returns:
Returns the adminName2.

setAdminName2

public void setAdminName2(String adminName2)
Parameters:
adminName2 - The adminName2 to set.

getCountryCode

public String getCountryCode()
Returns:
Returns the ISO 3166-1-alpha-2 countryCode.

setCountryCode

public void setCountryCode(String countryCode)
Parameters:
countryCode - The ISO 3166-1-alpha-2 countryCode to set.

getLatitude

public double getLatitude()
latitude in WGS84

Returns:
Returns the latitude.

setLatitude

public void setLatitude(double latitude)
Parameters:
latitude - The latitude to set.

getLongitude

public double getLongitude()
longitude in WGS84

Returns:
Returns the longitude.

setLongitude

public void setLongitude(double longitude)
Parameters:
longitude - The longitude to set.

getPlaceName

public String getPlaceName()
Returns:
Returns the placeName.

setPlaceName

public void setPlaceName(String placeName)
Parameters:
placeName - The placeName to set.

getPostalCode

public String getPostalCode()
Returns:
Returns the postalCode.

setPostalCode

public void setPostalCode(String postalCode)
Parameters:
postalCode - The postalCode to set.