public class UGCAddressMatchProvider extends java.lang.Object implements AddressMatchProvider, Disposable, ProviderContextAware
Constructor and Description |
---|
UGCAddressMatchProvider() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
java.util.List<GeoAddress> |
geocoding(GeoCodingParam param)
Forward address matching method
|
java.util.List<GeoAddress> |
geodecoding(GeoDecodingParam param)
Reverse address matching method
|
java.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.String |
getUid()
Get the id of the address matching service provider A randomly generated identifier when the service provider starts up
|
static boolean |
isDistrictValid(java.lang.String[] toMatchs, java.lang.String[] directs) |
boolean |
isUpdatingIndex()
Whether the index is being updated
|
void |
setProviderContext(ProviderContext context)
Sets the service provider context
|
void |
updateIndex(IndexUpdateParameter param)
Update forward address match index
|
public void setProviderContext(ProviderContext context)
ProviderContextAware
Sets the service provider context
setProviderContext
in interface ProviderContextAware
context
- service provider contextpublic void dispose()
Disposable
Release the resource object.
dispose
in interface Disposable
public java.util.List<GeoAddress> geocoding(GeoCodingParam param)
AddressMatchProvider
geocoding
in interface AddressMatchProvider
param
- Forward address matching parameterspublic java.util.List<GeoAddress> geodecoding(GeoDecodingParam param)
AddressMatchProvider
geodecoding
in interface AddressMatchProvider
param
- Reverse address matching parameterspublic static boolean isDistrictValid(java.lang.String[] toMatchs, java.lang.String[] directs)
public void updateIndex(IndexUpdateParameter param)
AddressMatchProvider
updateIndex
in interface AddressMatchProvider
param
- parameters for updating indexpublic java.lang.String getUid()
AddressMatchProvider
getUid
in interface AddressMatchProvider
public boolean isUpdatingIndex()
AddressMatchProvider
isUpdatingIndex
in interface AddressMatchProvider
public java.util.List<java.lang.String> getDatasourceNames()
AddressMatchProvider
Gets the list of data source names.
getDatasourceNames
in interface AddressMatchProvider
public java.util.List<java.lang.String> getDatasetNamesbyInUse(java.lang.String datasourceName)
AddressMatchProvider
Gets a list of names for datasets used in the specified data source.
getDatasetNamesbyInUse
in interface AddressMatchProvider