InteractiveBuilder
This class handles all the top level
interactive geocoding functionality
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(...);
@Deprecated public class InteractiveGeocoder extends Object implements InteractiveGeocodingAPI
Constructor and Description |
---|
InteractiveGeocoder()
Deprecated.
|
InteractiveGeocoder(com.pb.geocoding.config.api.GeocodingConfiguration configuration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Response |
findNearest(double x,
double y,
Preferences preferences)
Deprecated.
Looks for data records that fall within the default distance point.
|
Response |
findNearest(com.mapinfo.midev.geometry.IPoint origin,
Preferences preferences)
Deprecated.
Looks for data records that fall within the default distance point.
|
List<Dictionary> |
getConfiguredDictionaries()
Deprecated.
Get the Interactive configured dictionaries for all countries.
|
List<Dictionary> |
getConfiguredDictionaries(String country)
Deprecated.
Get the configured dictionaries for a single country.
|
Response |
suggest(Address address,
Preferences preferences)
Deprecated.
Completes the given information with a collection of suggested candidate matches.
|
public InteractiveGeocoder() throws GeocodingException
GeocodingException
public InteractiveGeocoder(com.pb.geocoding.config.api.GeocodingConfiguration configuration) throws GeocodingException
GeocodingException
public Response suggest(Address address, Preferences preferences) throws GeocodingException
InteractiveGeocodingAPI
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
suggest
in interface InteractiveGeocodingAPI
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
configurationpublic Response findNearest(com.mapinfo.midev.geometry.IPoint origin, Preferences preferences) throws GeocodingException
InteractiveGeocodingAPI
findNearest
in interface InteractiveGeocodingAPI
origin
- Centerpoint of the area to be searchedpreferences
- provide non default user preferencesGeocodingException
- if exception is thrown while performing operationpublic Response findNearest(double x, double y, Preferences preferences) throws GeocodingException
InteractiveGeocodingAPI
findNearest
in interface InteractiveGeocodingAPI
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 operationpublic List<Dictionary> getConfiguredDictionaries(String country) throws GeocodingException
InteractiveGeocodingAPI
getConfiguredDictionaries
in interface InteractiveGeocodingAPI
country
- - the country to return the information for.GeocodingException
- if exception is thrown while performing operationpublic List<Dictionary> getConfiguredDictionaries() throws GeocodingException
InteractiveGeocodingAPI
getConfiguredDictionaries
in interface InteractiveGeocodingAPI
GeocodingException
- if exception is thrown while performing operationCopyright © 2024. All rights reserved.