public interface GeocodingAPI extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
Response |
geocode(GeocodeType type,
Address address,
Preferences preferences)
Geocode an address.
|
List<Response> |
geocodeMultiple(GeocodeType type,
List<Address> addressList,
Preferences preferences)
Deprecated.
As of 3.0, use
geocode(GeocodeType, Address, Preferences) Geocode a list
of addresses. The "country" field of each Address must contain the ISO-3166 3-char country code
of the input country. |
CapabilitiesResponse |
getCapabilities()
Get the capabilities of the geocoding service for all countries.
|
CapabilitiesResponse |
getCapabilities(String country)
Get the capabilities of all geocoding service operations for a single country.
|
CapabilitiesResponse |
getCapabilities(String country,
String operation)
Get the capabilities of the named operation for a single country.
|
List<Dictionary> |
getConfiguredDictionaries()
Get the configured dictionaries for all countries.
|
List<Dictionary> |
getConfiguredDictionaries(String country)
Get the configured dictionaries for a single country.
|
Response |
keyLookup(KeyType type,
Key key,
Preferences preferences) |
List<Response> |
keyLookupMultiple(KeyType type,
List<Key> keys,
Preferences preferences)
Deprecated.
As of 3.0, use
keyLookup(KeyType, Key, Preferences) Performs a geocode
operation on multiple records and returns candidates for those records. |
Response |
reverseGeocode(double x,
double y,
String csys,
String country,
Preferences preferences)
Reverse geocode a point and return the address closest to the given x and y value.
|
Response |
reverseGeocode(com.mapinfo.midev.geometry.IPoint point,
String country,
Preferences preferences)
Reverse geocode a point and return the address closest to that point.
|
List<Response> |
reverseGeocodeMultiple(List<Points> locationList,
Preferences preferences)
Deprecated.
As of 3.0, use
reverseGeocode(IPoint, String, Preferences) Reverse geocode
a list of locations. |
close
Response geocode(GeocodeType type, Address address, Preferences preferences) throws GeocodingException
type
- - type of geocoding operation to performaddress
- - the address to geocodepreferences
- - geocoding preferencesGeocodingException
- if exception is thrown while performing operation@Deprecated List<Response> geocodeMultiple(GeocodeType type, List<Address> addressList, Preferences preferences) throws GeocodingException
geocode(GeocodeType, Address, Preferences)
Geocode a list
of addresses. The "country" field of each Address must contain the ISO-3166 3-char country code
of the input country.type
- - type of geocoding operation to perform on each address in the listaddressList
- - the list of addresses to geocodepreferences
- - geocoding preferences to apply to each address in the listGeocodingException
- if exception is thrown while performing operationResponse reverseGeocode(com.mapinfo.midev.geometry.IPoint point, String country, Preferences preferences) throws GeocodingException
point
- - Contains the location to look up.country
- - the optional country specificationpreferences
- - geocoding preferencesGeocodingException
- if exception is thrown while performing operationResponse reverseGeocode(double x, double y, String csys, String country, Preferences preferences) throws GeocodingException
x
- - the x value of the locationy
- - the y value of the locationcsys
- - the name of the coordinate system in "codespace:code" format.country
- - the optional country specificationpreferences
- - geocoding preferencesGeocodingException
- if exception is thrown while performing operation@Deprecated List<Response> reverseGeocodeMultiple(List<Points> locationList, Preferences preferences) throws GeocodingException
reverseGeocode(IPoint, String, Preferences)
Reverse geocode
a list of locations.locationList
- - the list of locationspreferences
- - geocoding preferencesGeocodingException
- if exception is thrown while performing operationCapabilitiesResponse getCapabilities(String country, String operation) throws GeocodingException
country
- - the country to return the information for. i.e. USAoperation
- - operation to return the information for. i.e. geocodeGeocodingException
- if exception is thrown while performing operationCapabilitiesResponse getCapabilities(String country) throws GeocodingException
country
- - the country to return the information for.GeocodingException
- if exception is thrown while performing operationCapabilitiesResponse getCapabilities() throws GeocodingException
GeocodingException
- if exception is thrown while performing operationList<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 keyLookup(KeyType type, Key key, Preferences preferences) throws GeocodingException
type
- - type of the key to do geocoding based off ofkey
- - look up key to use for geocodingpreferences
- - preferences that should be used for geocoding or for returning responseGeocodingException
- if exception is thrown while performing operation@Deprecated List<Response> keyLookupMultiple(KeyType type, List<Key> keys, Preferences preferences) throws GeocodingException
keyLookup(KeyType, Key, Preferences)
Performs a geocode
operation on multiple records and returns candidates for those records.type
- - type of the key to do geocoding based off ofkeys
- - keys to be used for geocodingpreferences
- - preferences that should be used for geocoding or for returning responseGeocodingException
- if exception is thrown while performing operationCopyright © 2024. All rights reserved.