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 String
getAdminCode1()
BoundingBox
getBoundingBox()
String
getCountryBias()
String
getCountryCode()
Double
getLatitude()
Double
getLongitude()
int
getMaxRows()
String
getPlaceName()
String
getPostalCode()
double
getRadius()
int
getStartRow()
Style
getStyle()
boolean
isOROperator()
Boolean
isReduced()
void
setAdminCode1(String adminCode1)
void
setBoundingBox(BoundingBox boundingBox)
void
setCountryBias(String countryBias)
void
setCountryCode(String countryCode)
void
setIsReduced(Boolean isReduced)
void
setLatitude(double latitude)
void
setLongitude(double longitude)
void
setMaxRows(int maxRows)
void
setOROperator(boolean isOROperator)
void
setPlaceName(String placeName)
void
setPostalCode(String postalCode)
void
setRadius(double radius)
the radius in km to be used for reverse geocoding.void
setStartRow(int startRow)
void
setStyle(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
-
-