Package org.geonames
Class PostalCodeSearchCriteria
- java.lang.Object
-
- org.geonames.PostalCodeSearchCriteria
-
public class PostalCodeSearchCriteria extends Object
search criteria for web services returning postal codes- Author:
- marc@geonames
-
-
Constructor Summary
Constructors Constructor Description PostalCodeSearchCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAdminCode1()BoundingBoxgetBoundingBox()StringgetCountryBias()StringgetCountryCode()DoublegetLatitude()DoublegetLongitude()intgetMaxRows()StringgetPlaceName()StringgetPostalCode()doublegetRadius()intgetStartRow()StylegetStyle()booleanisOROperator()BooleanisReduced()voidsetAdminCode1(String adminCode1)voidsetBoundingBox(BoundingBox boundingBox)voidsetCountryBias(String countryBias)voidsetCountryCode(String countryCode)voidsetIsReduced(Boolean isReduced)voidsetLatitude(double latitude)voidsetLongitude(double longitude)voidsetMaxRows(int maxRows)voidsetOROperator(boolean isOROperator)voidsetPlaceName(String placeName)voidsetPostalCode(String postalCode)voidsetRadius(double radius)the radius in km to be used for reverse geocoding.voidsetStartRow(int startRow)voidsetStyle(Style style)
-
-
-
Method Detail
-
getStyle
public Style getStyle()
- Returns:
- Returns the style.
-
setStyle
public void setStyle(Style style)
- Parameters:
style- The style to set.
-
getCountryCode
public String getCountryCode()
- Returns:
- Returns the ISO 3166-1-alpha-2 countryCode.
-
setCountryCode
public void setCountryCode(String countryCode) throws InvalidParameterException
- Parameters:
countryCode- The ISO 3166-1-alpha-2 countryCode to set.- Throws:
InvalidParameterException
-
getLatitude
public Double getLatitude()
- Returns:
- Returns the latitude.
-
setLatitude
public void setLatitude(double latitude) throws InvalidParameterException- Parameters:
latitude- The latitude to set.- Throws:
InvalidParameterException
-
getLongitude
public Double getLongitude()
- Returns:
- Returns the longitude.
-
setLongitude
public void setLongitude(double longitude) throws InvalidParameterException- Parameters:
longitude- The longitude to set.- Throws:
InvalidParameterException
-
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.
-
getMaxRows
public int getMaxRows()
- Returns:
- the maxRows
-
setMaxRows
public void setMaxRows(int maxRows)
- Parameters:
maxRows- the maxRows to set
-
setOROperator
public void setOROperator(boolean isOROperator)
- Parameters:
isOROperator- the isOROperator to set
-
isOROperator
public boolean isOROperator()
- Returns:
- the isOROperator
-
getAdminCode1
public String getAdminCode1()
- Returns:
- the adminCode1
-
setAdminCode1
public void setAdminCode1(String adminCode1)
- Parameters:
adminCode1- the adminCode1 to set
-
setRadius
public void setRadius(double radius)
the radius in km to be used for reverse geocoding.- Parameters:
radius- the radius to set
-
getRadius
public double getRadius()
- Returns:
- the radius
-
getCountryBias
public String getCountryBias()
- Returns:
- the countryBias
-
setCountryBias
public void setCountryBias(String countryBias)
- Parameters:
countryBias- the countryBias to set
-
getStartRow
public int getStartRow()
- Returns:
- the startRow
-
setStartRow
public void setStartRow(int startRow)
- Parameters:
startRow- the startRow to set
-
isReduced
public Boolean isReduced()
- Returns:
- the isReduced
-
setIsReduced
public void setIsReduced(Boolean isReduced)
- Parameters:
isReduced- the isReduced to set
-
getBoundingBox
public BoundingBox getBoundingBox()
- Returns:
- the boundingBox
-
setBoundingBox
public void setBoundingBox(BoundingBox boundingBox)
- Parameters:
boundingBox- the boundingBox to set
-
-