Package slash.navigation.geonames
Class GeoNamesService
java.lang.Object
slash.navigation.geocoding.BaseGeocodingService
slash.navigation.geonames.GeoNamesService
- All Implemented Interfaces:
ElevationService,GeocodingService
Encapsulates REST access to the geonames.org service.
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateRemainingDownloadSize(List<MapDescriptor> mapDescriptors) voiddownloadElevationData(List<MapDescriptor> mapDescriptors) voiddownloadElevationDataFor(List<LongitudeAndLatitude> longitudeAndLatitudes, boolean waitForDownload) getAddressFor(NavigationPosition position) Retrieves an address for a givenNavigationPosition.getCoverageTiles(BoundingBox area) getElevationFor(double longitude, double latitude) getName()getPath()getPositionsFor(String address) Retrieves a list ofGeocodingResults for a given address.booleanbooleanvoidMethods inherited from class slash.navigation.geocoding.BaseGeocodingService
asGeocodingResults, asGeocodingResults
-
Constructor Details
-
GeoNamesService
public GeoNamesService()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceElevationService- Specified by:
getNamein interfaceGeocodingService
-
isOverQueryLimit
public boolean isOverQueryLimit()- Specified by:
isOverQueryLimitin interfaceElevationService- Specified by:
isOverQueryLimitin interfaceGeocodingService
-
getElevationFor
- Specified by:
getElevationForin interfaceElevationService- Throws:
IOException
-
getPositionsFor
Description copied from interface:GeocodingServiceRetrieves a list ofGeocodingResults for a given address.- Specified by:
getPositionsForin interfaceGeocodingService- Parameters:
address- the address to geocode- Returns:
- a list of
GeocodingResults for the given address
-
isDownload
public boolean isDownload()- Specified by:
isDownloadin interfaceElevationService- Specified by:
isDownloadin interfaceGeocodingService
-
getPath
- Specified by:
getPathin interfaceElevationService
-
setPath
- Specified by:
setPathin interfaceElevationService
-
getDirectory
- Specified by:
getDirectoryin interfaceElevationService
-
downloadElevationDataFor
public void downloadElevationDataFor(List<LongitudeAndLatitude> longitudeAndLatitudes, boolean waitForDownload) - Specified by:
downloadElevationDataForin interfaceElevationService
-
calculateRemainingDownloadSize
- Specified by:
calculateRemainingDownloadSizein interfaceElevationService
-
downloadElevationData
- Specified by:
downloadElevationDatain interfaceElevationService
-