public class Addresser extends Object implements Addresser
Constructor and Description |
---|
Addresser(List<AddressFactory> addressFactories,
AddressingConfiguration configuration) |
Addresser(List<AddressFactory> addressFactories,
AddressingConfiguration configuration,
boolean onlyRemote) |
public Addresser(List<AddressFactory> addressFactories, AddressingConfiguration configuration, boolean onlyRemote) throws AddressingException
AddressingException
public Addresser(List<AddressFactory> addressFactories, AddressingConfiguration configuration) throws AddressingException
AddressingException
public Response verify(RequestAddress address, Preferences preferences) throws AddressingException
verify
in interface Addressing
address
- address that needs to be verifiedpreferences
- criteria controlling aspects of verificationAddressingException
- exception is thrown only when underlying implementation fails to populatepublic Response geocode(RequestAddress address, Preferences preferences) throws AddressingException
geocode
in interface Addressing
address
- address that need to be geocodedpreferences
- criteria controlling aspects of geocodingAddressingException
- exception is thrown only when underlying implementation fails to populatepublic ConfiguredDictionaryOutput getConfiguredDictionaries(ConfiguredDictionaryInput request) throws AddressingException
getConfiguredDictionaries
in interface Addressing
request
- which contains country code for fetching list of configured dictionaries.AddressingException
- exception is thrown only when underlying implementation failspublic ParsedResponse parse(RequestAddress address, Preferences preferences) throws AddressingException
Addressing
parseV2
method.parse
in interface Addressing
address
- address that needs to be parsedpreferences
- criteria controlling aspects of parsingAddressingException
- exception is thrown only when underlying implementation fails to populatepublic ParsedResponseV2 parseV2(RequestAddress address, Preferences preferences) throws AddressingException
parseV2
in interface Addressing
address
- address that needs to be parsedpreferences
- criteria controlling aspects of parsingAddressingException
- exception is thrown only when underlying implementation fails to populatepublic PredictionResponse predict(RequestAddress address, Preferences preferences) throws AddressingException
Addressing
predict
in interface Addressing
address
- request addresspreferences
- preferences to control how matching is done or how the data is returnedPredictionResponse
AddressingException
- exception is thrown only when underlying implementation fails to populatepublic PredictionResponseV2 predictV2(RequestAddress address, Preferences preferences) throws AddressingException
Addressing
predictV2
in interface Addressing
address
- request addresspreferences
- preferences to control how matching is done or how the data is returnedPredictionResponse
AddressingException
- exception is thrown only when underlying implementation fails to populatepublic Response lookup(LookupType type, Preferences preferences, KeyValue... key) throws AddressingException
lookup
in interface Addressing
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 populatepublic Response reverse(Double x, Double y, String country, Preferences preferences) throws AddressingException
Addressing
reverse
in interface Addressing
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 populatepublic Capabilities capabilities() throws AddressingException
Addressing
capabilities
in interface Addressing
AddressingException
- exception is thrown only when underlying implementation fails to populatepublic void close() throws Exception
close
in interface AutoCloseable
Exception
public List<Feature> features(String name) throws AddressingException
features
in interface Addresser
AddressingException
Copyright © 2024. All rights reserved.