Package org.geonames
Class Toponym
- java.lang.Object
-
- org.geonames.Toponym
-
public class Toponym extends Object
a GeoNames toponym- Author:
- marc@geonames
-
-
Constructor Summary
Constructors Constructor Description Toponym()
-
Method Summary
-
-
-
Method Detail
-
getContinentCode
public String getContinentCode() throws InsufficientStyleException
- Returns:
- the continentCode
- Throws:
InsufficientStyleException
-
setContinentCode
public void setContinentCode(String continentCode)
- Parameters:
continentCode
- the continentCode 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.
-
getElevation
public Integer getElevation() throws InsufficientStyleException
- Returns:
- Returns the elevation in meter.
- Throws:
InsufficientStyleException
-
setElevation
public void setElevation(Integer elevation)
- Parameters:
elevation
- The elevation im meter to set.
-
getFeatureClass
public FeatureClass getFeatureClass()
the feature classFeatureClass
- Returns:
- Returns the featureClass.
- See Also:
- GeoNames Feature Codes
-
setFeatureClass
public void setFeatureClass(FeatureClass featureClass)
- Parameters:
featureClass
- The featureClass to set.
-
getFeatureCode
public String getFeatureCode()
- Returns:
- Returns the featureCode.
- See Also:
- GeoNames Feature Codes
-
setFeatureCode
public void setFeatureCode(String featureCode)
- Parameters:
featureCode
- The featureCode to set.
-
getLatitude
public double getLatitude()
latitude in decimal degrees (wgs84)- Returns:
- Returns the latitude.
-
setLatitude
public void setLatitude(double latitude)
- Parameters:
latitude
- The latitude to set.
-
getLongitude
public double getLongitude()
longitude in decimal degrees (wgs84)- Returns:
- Returns the longitude.
-
setLongitude
public void setLongitude(double longitude)
- Parameters:
longitude
- The longitude to set.
-
getName
public String getName()
- Returns:
- Returns the name.
-
setName
public void setName(String name)
- Parameters:
name
- The name to set.
-
getPopulation
public Long getPopulation() throws InsufficientStyleException
- Returns:
- Returns the population.
- Throws:
InsufficientStyleException
-
setPopulation
public void setPopulation(Long population)
- Parameters:
population
- The population to set.
-
getGeoNameId
public int getGeoNameId()
- Returns:
- Returns the geoNameId.
-
setGeoNameId
public void setGeoNameId(int geonameId)
- Parameters:
geonameId
- The geoNameId to set.
-
getFeatureClassName
public String getFeatureClassName()
- Returns:
- Returns the featureClassName.
-
setFeatureClassName
public void setFeatureClassName(String featureClassName)
- Parameters:
featureClassName
- The featureClassName to set.
-
getFeatureCodeName
public String getFeatureCodeName()
- Returns:
- Returns the featureCodeName.
-
setFeatureCodeName
public void setFeatureCodeName(String featureCodeName)
- Parameters:
featureCodeName
- The featureCodeName to set.
-
getCountryName
public String getCountryName()
- Returns:
- Returns the countryName.
-
setCountryName
public void setCountryName(String countryName)
- Parameters:
countryName
- The countryName to set.
-
getAlternateNames
public String getAlternateNames() throws InsufficientStyleException
alternate names of this place as comma separated list- Returns:
- the alternateNames as comma separated list
- Throws:
InsufficientStyleException
-
setAlternateNames
public void setAlternateNames(String alternateNames)
- Parameters:
alternateNames
- the alternateNames to set
-
getAdminCode1
public String getAdminCode1() throws InsufficientStyleException
- Returns:
- the adminCode1
- Throws:
InsufficientStyleException
-
setAdminCode1
public void setAdminCode1(String adminCode1)
- Parameters:
adminCode1
- the adminCode1 to set
-
getAdminCode2
public String getAdminCode2() throws InsufficientStyleException
- Returns:
- the adminCode2
- Throws:
InsufficientStyleException
-
setAdminCode2
public void setAdminCode2(String adminCode2)
- Parameters:
adminCode2
- the adminCode2 to set
-
getAdminCode3
public String getAdminCode3() throws InsufficientStyleException
- Returns:
- the adminCode3
- Throws:
InsufficientStyleException
-
setAdminCode3
public void setAdminCode3(String adminCode3)
- Parameters:
adminCode3
- the adminCode3 to set
-
getAdminCode4
public String getAdminCode4() throws InsufficientStyleException
- Returns:
- the adminCode4
- Throws:
InsufficientStyleException
-
setAdminCode4
public void setAdminCode4(String adminCode4)
- Parameters:
adminCode4
- the adminCode4 to set
-
getAdminCode5
public String getAdminCode5()
- Returns:
- the adminCode5
-
setAdminCode5
public void setAdminCode5(String adminCode5)
- Parameters:
adminCode5
- the adminCode5 to set
-
getTimezone
public Timezone getTimezone() throws InsufficientStyleException
- Returns:
- the timezone
- Throws:
InsufficientStyleException
-
setTimezone
public void setTimezone(Timezone timezone)
- Parameters:
timezone
- the timezone to set
-
getAdminName1
public String getAdminName1() throws InsufficientStyleException
- Returns:
- the adminName1
- Throws:
InsufficientStyleException
-
setAdminName1
public void setAdminName1(String adminName1)
- Parameters:
adminName1
- the adminName1 to set
-
getAdminName2
public String getAdminName2() throws InsufficientStyleException
- Returns:
- the adminName2
- Throws:
InsufficientStyleException
-
setAdminName2
public void setAdminName2(String adminName2)
- Parameters:
adminName2
- the adminName2 to set
-
getAdminName3
public String getAdminName3()
- Returns:
- the adminName3
-
setAdminName3
public void setAdminName3(String adminName3)
- Parameters:
adminName3
- the adminName3 to set
-
getAdminName4
public String getAdminName4()
- Returns:
- the adminName4
-
setAdminName4
public void setAdminName4(String adminName4)
- Parameters:
adminName4
- the adminName4 to set
-
getAdminName5
public String getAdminName5()
- Returns:
- the adminName5
-
setAdminName5
public void setAdminName5(String adminName5)
- Parameters:
adminName5
- the adminName5 to set
-
getStyle
public Style getStyle()
- Returns:
- the style used when calling the web service that returned this toponym.
-
setStyle
public void setStyle(Style style)
- Parameters:
style
- the style to set
-
getBoundingBox
public BoundingBox getBoundingBox()
- Returns:
- the boundingBox
-
setBoundingBox
public void setBoundingBox(BoundingBox boundingBox)
- Parameters:
boundingBox
- the boundingBox to set
-
-