public interface Addressing extends AutoCloseable
Addressing addressing = new AddressingBuilder()
.withConfiguration(new AddressingConfigurationBuilder()
.withResources(Paths.get("{directory}/ga-sdk-dist-3.1.187/resources")) // runtime resources location bundled in release distribution
.withData(new SpdDataSourceBuilder()
.withSpdPaths(Paths.get("/data")) // location where software should scan for SPD data
.withNumberOfExtractors(3)
.withExtractedPath(Paths.get("/data")) // location where data should be extracted
.build())
.build())
.build();
| Modifier and Type | Method and Description |
|---|---|
Capabilities |
capabilities()
Get supported capabilities of addresser
|
Response |
geocode(RequestAddress address,
Preferences preferences) |
ConfiguredDictionaryOutput |
getConfiguredDictionaries(ConfiguredDictionaryInput request) |
Response |
lookup(LookupType type,
Preferences preferences,
KeyValue... key) |
ParsedResponse |
parse(RequestAddress address,
Preferences preferences)
Deprecated.
|
ParsedResponseV2 |
parseV2(RequestAddress address,
Preferences preferences) |
PredictionResponse |
predict(RequestAddress address,
Preferences preferences)
parse address elements
|
PredictionResponseV2 |
predictV2(RequestAddress address,
Preferences preferences)
parse address elements
|
Response |
reverse(Double x,
Double y,
String country,
Preferences preferences)
find address for given coordinates
|
Response |
verify(RequestAddress address,
Preferences preferences) |
closeResponse verify(RequestAddress address, Preferences preferences) throws AddressingException
address - address that needs to be verifiedpreferences - criteria controlling aspects of verificationAddressingException - exception is thrown only when underlying implementation fails to populateResponse geocode(RequestAddress address, Preferences preferences) throws AddressingException
address - address that need to be geocodedpreferences - criteria controlling aspects of geocodingAddressingException - exception is thrown only when underlying implementation fails to populateConfiguredDictionaryOutput getConfiguredDictionaries(ConfiguredDictionaryInput request) throws AddressingException
request - which contains country code for fetching list of configured dictionaries.AddressingException - exception is thrown only when underlying implementation fails@Deprecated ParsedResponse parse(RequestAddress address, Preferences preferences) throws AddressingException
parseV2 method.address - address that needs to be parsedpreferences - criteria controlling aspects of parsingAddressingException - exception is thrown only when underlying implementation fails to populateParsedResponseV2 parseV2(RequestAddress address, Preferences preferences) throws AddressingException
address - address that needs to be parsedpreferences - criteria controlling aspects of parsingAddressingException - exception is thrown only when underlying implementation fails to populatePredictionResponse predict(RequestAddress address, Preferences preferences) throws AddressingException
address - request addresspreferences - preferences to control how matching is done or how the data is returnedPredictionResponseAddressingException - exception is thrown only when underlying implementation fails to populatePredictionResponseV2 predictV2(RequestAddress address, Preferences preferences) throws AddressingException
address - request addresspreferences - preferences to control how matching is done or how the data is returnedPredictionResponseAddressingException - exception is thrown only when underlying implementation fails to populateResponse lookup(LookupType type, Preferences preferences, KeyValue... key) throws AddressingException
type - LookupType i.e PB_KEYpreferences - preferences to control how matching is done or how the data is returnedkey - key information for lookupAddressingException - exception is thrown only when underlying implementation fails to populateResponse reverse(Double x, Double y, String country, Preferences preferences) throws AddressingException
x - coordinate longitudey - coordinate latitudecountry - countrypreferences - preferences to control how matching is done or how the data is returnedAddressingException - exception is thrown only when underlying implementation fails to populateCapabilities capabilities() throws AddressingException
AddressingException - exception is thrown only when underlying implementation fails to populateCopyright © 2024. All rights reserved.