com.supermap.services.providers
Class UGCAddressMatchProvider
- java.lang.Object
-
- com.supermap.services.providers.UGCAddressMatchProvider
-
- All Implemented Interfaces:
- AddressMatchProvider, Disposable, ProviderContextAware
public class UGCAddressMatchProvider extends java.lang.Object implements AddressMatchProvider, Disposable, ProviderContextAware
-
-
Constructor Summary
Constructors Constructor and Description UGCAddressMatchProvider()
-
Method Summary
Methods Modifier and Type Method and Description voiddispose()Release the resource object.java.util.List<GeoAddress>geocoding(GeoCodingParam param)Forward address matching methodjava.util.List<GeoAddress>geodecoding(GeoDecodingParam param)Reverse address matching methodjava.util.List<java.lang.String>getDatasetNamesbyInUse(java.lang.String datasourceName)Gets a list of names for datasets used in the specified data source.java.util.List<java.lang.String>getDatasourceNames()Gets the list of data source names.java.lang.StringgetUid()Get the id of the address matching service provider A randomly generated identifier when the service provider starts upstatic booleanisDistrictValid(java.lang.String[] toMatchs, java.lang.String[] directs)booleanisUpdatingIndex()Whether the index is being updatedvoidsetProviderContext(ProviderContext context)Sets the service provider contextvoidupdateIndex(IndexUpdateParameter param)Update forward address match index
-
-
-
Method Detail
-
setProviderContext
public void setProviderContext(ProviderContext context)
Description copied from interface:ProviderContextAwareSets the service provider context
- Specified by:
setProviderContextin interfaceProviderContextAware- Parameters:
context- service provider context
-
dispose
public void dispose()
Description copied from interface:DisposableRelease the resource object.
- Specified by:
disposein interfaceDisposable
-
geocoding
public java.util.List<GeoAddress> geocoding(GeoCodingParam param)
Description copied from interface:AddressMatchProviderForward address matching method- Specified by:
geocodingin interfaceAddressMatchProvider- Parameters:
param- Forward address matching parameters- Returns:
- Forward address matching result set
-
geodecoding
public java.util.List<GeoAddress> geodecoding(GeoDecodingParam param)
Description copied from interface:AddressMatchProviderReverse address matching method- Specified by:
geodecodingin interfaceAddressMatchProvider- Parameters:
param- Reverse address matching parameters- Returns:
- Reverse address matching result set
-
isDistrictValid
public static boolean isDistrictValid(java.lang.String[] toMatchs, java.lang.String[] directs)
-
updateIndex
public void updateIndex(IndexUpdateParameter param)
Description copied from interface:AddressMatchProviderUpdate forward address match index- Specified by:
updateIndexin interfaceAddressMatchProvider- Parameters:
param- parameters for updating index
-
getUid
public java.lang.String getUid()
Description copied from interface:AddressMatchProviderGet the id of the address matching service provider A randomly generated identifier when the service provider starts up- Specified by:
getUidin interfaceAddressMatchProvider
-
isUpdatingIndex
public boolean isUpdatingIndex()
Description copied from interface:AddressMatchProviderWhether the index is being updated- Specified by:
isUpdatingIndexin interfaceAddressMatchProvider- Returns:
-
getDatasourceNames
public java.util.List<java.lang.String> getDatasourceNames()
Description copied from interface:AddressMatchProviderGets the list of data source names.
- Specified by:
getDatasourceNamesin interfaceAddressMatchProvider- Returns:
- data source name list.
-
getDatasetNamesbyInUse
public java.util.List<java.lang.String> getDatasetNamesbyInUse(java.lang.String datasourceName)
Description copied from interface:AddressMatchProviderGets a list of names for datasets used in the specified data source.
- Specified by:
getDatasetNamesbyInUsein interfaceAddressMatchProvider- Returns:
- Data set name list.
-
-