Configure Address Matching Provider

Feedback


SuperMap iServer supports the following types of address matching service providers:

Configure address matching provider

Configuring workspace as an address matching provider example

<provider class="com.supermap.services.providers.UGCAddressMatchProvider" enabled="true" name="addressmatch-BeijingAddress">
        <config class="com.supermap.services.providers.UGCAddressMatchProviderSetting">
                 <dictionaryPath>./WEB-INF/config/addressMatchDictionary.dct</dictionaryPath> 
                 <isTraditional>true</isTraditional> 
                 <workspacePath>E:/supermap/data/BeijingAddress/BeijingAddress.smwu</workspacePath>  
                 <indexDir>E:/supermap/data/BeijingAddress/index</indexDir>  
                 <datasourceName>BeijingAddress</datasourceName> 
                 <datasetNames>company</datasetNames> 
                 <updateIndex>false</updateIndex>
                 <geoDecodingRadius>500</geoDecodingRadius>  
                 <searchFields>NAME,ADDRESS,county,city</searchFields>  
                 <indexEpsgCode>3857</indexEpsgCode>   
                 <binDistance>-1.0</binDistance>   
                 <maxReturn>10</maxReturn>     
                 <filterFields>city,county,ADDRESS</filterFields>  
                 <hour>3</hour>  
                 <minute>0</minute>  
                 <dayOfWeek>1</dayOfWeek> 
        </config>  
</provider>

Example of configuring address index as address matching provider

  1.     <provider class="com.supermap.services.providers.UGCAddressMatchProvider" enabled="true" name="addressMatch-index">
          <config class="com.supermap.services.providers.UGCAddressMatchProviderSetting">
            <isMultiInstance>false</isMultiInstance>  
            <dictionaryPath>./WEB-INF/config/addressMatchDictionary.dct</dictionaryPath>  
            <indexDir>E:\supermap_packages\data\BeijingAddress-new\BeijingAddress\index</indexDir>  
            <poolSize>4</poolSize>  
            <geoDecodingRadius>500.0</geoDecodingRadius>  
            <indexEpsgCode>0</indexEpsgCode>  
            <binDistance>-1.0</binDistance>  
            <maxReturn>-1</maxReturn>  
            <updateIndex>false</updateIndex>  
            <hour>3</hour>  
            <minute>0</minute>
          </config>
        </provider> 
    

The class in <provider> identifies the implementation class of the UGC service provider,the class in <config> identifies the configuration class corresponding to the UGC service provider, which is UGCAaddressMatchLayoutSetting, the content in <config> is the configuration item corresponding to UGCAaddressMatchExtendedSetting:

Note: 1. When using the address match service, it is recommended that the projection of all data sets be consistent.

2. Currently, only Chinese is supported for matching, not English.

Configure ArcGIS REST address matching provider

Configure an ArcGIS REST address matching provider as follows:

<provider class="com.supermap.services.providers.ArcGISRestGeocodeProvider" enabled="true" name="addressmatch-arcgisGeocode">
        <config class="com.supermap.services.providers.ArcGISRestGeocodeProviderSetting">
                 <restServiceRootURL>https://arcserver.ispeco.com/server/rest/services/World/GeocodeServer</restServiceRootURL> 
        </config>  
</provider>

The class in <provider> identifies the implementation class of ArcGIS REST address matching  provider, the class in <config> identifies the configuration class corresponding to the ArcGIS REST address matching  service provider, namely ArcGISRestGeocodeProviderSetting, the content in <config> is the corresponding configuration item: