Package com.massifmaps.geocoding
Class PackageManagerReverseGeocodingService
java.lang.Object
com.massifmaps.geocoding.ReverseGeocodingService
com.massifmaps.geocoding.PackageManagerReverseGeocodingService
A reverse geocoding service that uses geocoding packages from package manager.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageManagerReverseGeocodingService(PackageManager packageManager) Constructs a new instance of the PackageManagerReverseGeocodingService given package manager instance. -
Method Summary
Modifier and TypeMethodDescriptionCalculates matching addresses from the specified reverse geocoding request.Returns the language of the expected results.voidsetLanguage(String lang) Sets the language of the expected results.
-
Constructor Details
-
PackageManagerReverseGeocodingService
Constructs a new instance of the PackageManagerReverseGeocodingService given package manager instance.- Parameters:
packageManager- The package manager instance to use.
-
-
Method Details
-
getLanguage
Description copied from class:ReverseGeocodingServiceReturns the language of the expected results.- Overrides:
getLanguagein classReverseGeocodingService- Returns:
- The language of the expected results. As ISO 639-1 code or empty string.
-
setLanguage
Description copied from class:ReverseGeocodingServiceSets the language of the expected results.- Overrides:
setLanguagein classReverseGeocodingService- Parameters:
lang- The language to use as ISO 639-1 code. Empty string can be used for default language.
-
calculateAddresses
Description copied from class:ReverseGeocodingServiceCalculates matching addresses from the specified reverse geocoding request.- Overrides:
calculateAddressesin classReverseGeocodingService- Parameters:
request- The reverse geocoding request to use.- Returns:
- The list of matching geocoding results, sorted by descending ranks.
- Throws:
IOException
-