com.gisgraphy.domain.valueobject
Class GisFeatureDistance
java.lang.Object
com.gisgraphy.domain.valueobject.GisFeatureDistance
public class GisFeatureDistance
- extends java.lang.Object
Value object that represents a gisFeature with a distance The JAXB node name
is Constants.GISFEATUREDISTANCE_JAXB_NAME
- Author:
- David Masclet
Field Summary |
protected static org.slf4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
GisFeatureDistance
public GisFeatureDistance()
GisFeatureDistance
public GisFeatureDistance(GisFeature gisFeature,
java.lang.Double distance)
- Parameters:
gisFeature
- The gisFeaturedistance
- The distance
GisFeatureDistance
public GisFeatureDistance(Adm adm,
java.lang.Double distance)
- Parameters:
adm
- The admdistance
- The distance
GisFeatureDistance
public GisFeatureDistance(Country country,
java.lang.Double distance)
- Parameters:
country
- The countrydistance
- The distance
updateFields
public void updateFields()
- update the calculated fields (GoogleMapUrl,YahooMapURL,CountryFlag,...)
getDistance
public java.lang.Double getDistance()
- Returns:
- The distance
getGisFeature
public GisFeature getGisFeature()
- Returns:
- The gisfeature
getName
public java.lang.String getName()
- Returns:
- the name
getLocation
public com.vividsolutions.jts.geom.Point getLocation()
- Returns:
- the location
getAdm1Code
public java.lang.String getAdm1Code()
- Returns:
- the adm1Code
getAdm2Code
public java.lang.String getAdm2Code()
- Returns:
- the adm2Code
getAdm3Code
public java.lang.String getAdm3Code()
- Returns:
- the adm3Code
getAdm4Code
public java.lang.String getAdm4Code()
- Returns:
- the adm4Code
getAdm1Name
public java.lang.String getAdm1Name()
- Returns:
- the adm1Name
getAdm2Name
public java.lang.String getAdm2Name()
- Returns:
- the adm2Name
getAdm3Name
public java.lang.String getAdm3Name()
- Returns:
- the adm3Name
getAdm4Name
public java.lang.String getAdm4Name()
- Returns:
- the adm4Name
getAsciiName
public java.lang.String getAsciiName()
- Returns:
- the asciiName
getCountryCode
public java.lang.String getCountryCode()
- Returns:
- the countryCode
getElevation
public java.lang.Integer getElevation()
- Returns:
- the elevation
getFeatureClass
public java.lang.String getFeatureClass()
- Returns:
- the featureClass
getFeatureCode
public java.lang.String getFeatureCode()
- Returns:
- the featureCode
getFeatureId
public java.lang.Long getFeatureId()
- Returns:
- the featureId
getGtopo30
public java.lang.Integer getGtopo30()
- Returns:
- the gtopo30
getPopulation
public java.lang.Integer getPopulation()
- Returns:
- the population
getTimezone
public java.lang.String getTimezone()
- Returns:
- the timezone
getLat
public java.lang.Double getLat()
- Returns:
- the lat
getLng
public java.lang.Double getLng()
- Returns:
- the lng
getZipCodes
public java.util.List<java.lang.String> getZipCodes()
- Returns:
- the zipCode
addZipCode
public void addZipCode(java.lang.String zipCode)
- add a zipcode to the list of zipcode
- Parameters:
zipCode
- the zipcode to add
setZipCodes
public void setZipCodes(java.util.List<java.lang.String> zipCodes)
- Set the zipcodes
- Parameters:
zipCodes
- the zipcodes to add
getPlaceType
public java.lang.String getPlaceType()
- Returns:
- the placeType
getGoogle_map_url
public java.lang.String getGoogle_map_url()
- Returns:
- the google_map_url
getYahoo_map_url
public java.lang.String getYahoo_map_url()
- Returns:
- the yahoo_map_url
getCountry_flag_url
public java.lang.String getCountry_flag_url()
- Returns:
- the country_flag_url
getLevel
public java.lang.Integer getLevel()
- Returns:
- the level
getArea
public java.lang.Double getArea()
- Returns:
- the area
getTld
public java.lang.String getTld()
- Returns:
- the tld
getCapitalName
public java.lang.String getCapitalName()
- Returns:
- the capitalName
getContinent
public java.lang.String getContinent()
- Returns:
- the continent
getPostalCodeRegex
public java.lang.String getPostalCodeRegex()
- Returns:
- the postalCodeRegex
getCurrencyCode
public java.lang.String getCurrencyCode()
- Returns:
- the currencyCode
getCurrencyName
public java.lang.String getCurrencyName()
- Returns:
- the currencyName
getEquivalentFipsCode
public java.lang.String getEquivalentFipsCode()
- Returns:
- the equivalentFipsCode
getFipsCode
public java.lang.String getFipsCode()
- Returns:
- the fipsCode
getIso3166Alpha2Code
public java.lang.String getIso3166Alpha2Code()
- Returns:
- the iso3166Alpha2Code
getIso3166Alpha3Code
public java.lang.String getIso3166Alpha3Code()
- Returns:
- the iso3166Alpha3Code
getIso3166NumericCode
public java.lang.Integer getIso3166NumericCode()
- Returns:
- the iso3166NumericCode
getPhonePrefix
public java.lang.String getPhonePrefix()
- Returns:
- the phonePrefix
getPostalCodeMask
public java.lang.String getPostalCodeMask()
- Returns:
- the postalCodeMask
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getId
public java.lang.Long getId()
- Returns:
- the id
Copyright © 2010. All Rights Reserved.