public interface InteractiveGeocodingAPI
GeocodingConfiguration configuration = new ConfigurationBuilder()
.setConfigirationLocation(Paths.get("/dist/resources/config"))
.setNativeBinariesLocation(Paths.get("/dist/resources/bin/linux64"))
.setResolveClassPathConfig(false)
.build();
InteractiveGeocodingAPI interactiveAPI = new InteractiveGeocoder(configuration);
Response response = interactiveAPI.suggest(...);
Modifier and Type | Method and Description |
---|---|
Response |
findNearest(double x,
double y,
Preferences preferences)
Looks for data records that fall within the default distance point.
|
Response |
findNearest(com.mapinfo.midev.geometry.IPoint origin,
Preferences preferences)
Looks for data records that fall within the default distance point.
|
List<Dictionary> |
getConfiguredDictionaries()
Get the Interactive configured dictionaries for all countries.
|
List<Dictionary> |
getConfiguredDictionaries(String country)
Get the configured dictionaries for a single country.
|
Response |
suggest(Address address,
Preferences preferences)
Completes the given information with a collection of suggested candidate matches.
|
Response suggest(Address address, Preferences preferences) throws GeocodingException
Address address = new GeocodeAddress();
address.setMainAddressLine("1 Global View"); //search for 1 Global View
address.setCountry("usa"); //only from usa
//other Address fields can be used for further restriction of search location
address
- input address information. For interactive search utilizes the mainAddress
of Address Objectpreferences
- if null provided defaults will be usedGeocodingException
- an exception is thrown if address is null or with invalid
configurationList<Dictionary> getConfiguredDictionaries(String country) throws GeocodingException
country
- - the country to return the information for.GeocodingException
- if exception is thrown while performing operationList<Dictionary> getConfiguredDictionaries() throws GeocodingException
GeocodingException
- if exception is thrown while performing operationResponse findNearest(com.mapinfo.midev.geometry.IPoint origin, Preferences preferences) throws GeocodingException
origin
- Centerpoint of the area to be searchedpreferences
- provide non default user preferencesGeocodingException
- if exception is thrown while performing operationResponse findNearest(double x, double y, Preferences preferences) throws GeocodingException
x
- X-Origin of the area to be searchedy
- Y-Origin of the area to be searchedpreferences
- provide non default user preferencesGeocodingException
- if exception is thrown while performing operationCopyright © 2024. All rights reserved.