Class GeonamesServiceImpl
- java.lang.Object
-
- org.apache.unomi.geonames.services.GeonamesServiceImpl
-
- All Implemented Interfaces:
GeonamesService
public class GeonamesServiceImpl extends Object implements GeonamesService
-
-
Field Summary
Fields Modifier and Type Field Description static String
GEOCODING_MAX_DISTANCE
-
Fields inherited from interface org.apache.unomi.geonames.services.GeonamesService
ADM1_FEATURE_CODES, ADM2_FEATURE_CODES, CITIES_FEATURE_CODES, COUNTRY_FEATURE_CODES, FEATURES_CLASSES, ORDERED_FEATURES
-
-
Constructor Summary
Constructors Constructor Description GeonamesServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GeonameEntry>
getCapitalEntries(String itemId)
PartialList<GeonameEntry>
getChildrenCities(List<String> items, int offset, int size)
PartialList<GeonameEntry>
getChildrenEntries(List<String> items, int offset, int size)
List<GeonameEntry>
getHierarchy(String itemId)
List<GeonameEntry>
getHierarchy(GeonameEntry entry)
void
importDatabase()
List<GeonameEntry>
reverseGeoCode(String lat, String lon)
void
setDefinitionsService(DefinitionsService definitionsService)
void
setForceDbImport(Boolean forceDbImport)
void
setPathToGeonamesDatabase(String pathToGeonamesDatabase)
void
setPersistenceService(PersistenceService persistenceService)
void
setRefreshDbInterval(Integer refreshDbInterval)
void
setSchedulerService(SchedulerService schedulerService)
void
start()
void
stop()
-
-
-
Field Detail
-
GEOCODING_MAX_DISTANCE
public static final String GEOCODING_MAX_DISTANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setForceDbImport
public void setForceDbImport(Boolean forceDbImport)
-
setDefinitionsService
public void setDefinitionsService(DefinitionsService definitionsService)
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setSchedulerService
public void setSchedulerService(SchedulerService schedulerService)
-
setPathToGeonamesDatabase
public void setPathToGeonamesDatabase(String pathToGeonamesDatabase)
-
setRefreshDbInterval
public void setRefreshDbInterval(Integer refreshDbInterval)
-
start
public void start()
-
stop
public void stop()
-
importDatabase
public void importDatabase()
- Specified by:
importDatabase
in interfaceGeonamesService
-
getHierarchy
public List<GeonameEntry> getHierarchy(String itemId)
- Specified by:
getHierarchy
in interfaceGeonamesService
-
getHierarchy
public List<GeonameEntry> getHierarchy(GeonameEntry entry)
-
reverseGeoCode
public List<GeonameEntry> reverseGeoCode(String lat, String lon)
- Specified by:
reverseGeoCode
in interfaceGeonamesService
-
getChildrenEntries
public PartialList<GeonameEntry> getChildrenEntries(List<String> items, int offset, int size)
- Specified by:
getChildrenEntries
in interfaceGeonamesService
-
getChildrenCities
public PartialList<GeonameEntry> getChildrenCities(List<String> items, int offset, int size)
- Specified by:
getChildrenCities
in interfaceGeonamesService
-
getCapitalEntries
public List<GeonameEntry> getCapitalEntries(String itemId)
- Specified by:
getCapitalEntries
in interfaceGeonamesService
-
-