public class City extends GisFeature implements ZipCodesAware
Modifier and Type | Field and Description |
---|---|
static String |
MUNICIPALITY_FIELD_NAME |
LOCATION_COLUMN_NAME, logger, MAX_ALTERNATENAME_SIZE, NAME_MAX_LENGTH, SHAPE_COLUMN_NAME
Constructor and Description |
---|
City()
Default constructor (Needed by CGLib)
|
City(GisFeature gisFeature)
Constructor that populate the
City with the gisFeature fields |
Modifier and Type | Method and Description |
---|---|
String |
getFullyQualifiedName(boolean withCountry)
Returns a name with adm1Name and adm2Name added (if not null).
|
int |
hashCode() |
boolean |
isFullTextSearchable()
Override the gisFeature value.
|
boolean |
isMunicipality() |
void |
setMunicipality(boolean isMunicipality) |
addAlternateName, addAlternateNames, addIsInCitiesAlternateName, addIsInCitiesAlternateNames, addZip, addZipCode, addZipCodes, addZips, distanceTo, equals, getAdm, getAdm1Code, getAdm1Name, getAdm2Code, getAdm2Name, getAdm3Code, getAdm3Name, getAdm4Code, getAdm4Name, getAdm5Code, getAdm5Name, getAlternateNames, getAmenity, getAsciiName, getCountry, getCountryCode, getElevation, getFeatureClass, getFeatureCode, getFeatureId, getFullyQualifiedName, getGtopo30, getId, getIsIn, getIsInAdm, getIsInCityAlternateNames, getIsInPlace, getIsInZip, getLatitude, getLocation, getLongitude, getModificationDate, getName, getOpenstreetmapId, getPopulation, getShape, getSource, getTimezone, getZipCodes, isAdm, isCity, isCountry, populate, setAdm, setAdm1Code, setAdm1Name, setAdm2Code, setAdm2Name, setAdm3Code, setAdm3Name, setAdm4Code, setAdm4Name, setAdm5Code, setAdm5Name, setAlternateNames, setAmenity, setAsciiName, setCountryCode, setElevation, setFeatureClass, setFeatureCode, setFeatureId, setGtopo30, setId, setIsIn, setIsInAdm, setIsInCityAlternateNames, setIsInPlace, setIsInZip, setLocation, setModificationDate, setName, setOpenstreetmapId, setPopulation, setShape, setSource, setTimezone, setZipCodes, toString
public static final String MUNICIPALITY_FIELD_NAME
public City(GisFeature gisFeature)
City
with the gisFeature fieldsgisFeature
- The gisFeature from which we want to populate the
Citypublic City()
public boolean isFullTextSearchable()
isFullTextSearchable
in class GisFeature
public int hashCode()
hashCode
in class GisFeature
public String getFullyQualifiedName(boolean withCountry)
getFullyQualifiedName
in class GisFeature
withCountry
- Whether the country information should be addedpublic boolean isMunicipality()
public void setMunicipality(boolean isMunicipality)
Copyright © 2015. All rights reserved.