Class: AddressMatchService

ol.supermap.AddressMatchService

The AddressMatchService class.

new ol.supermap.AddressMatchService(url, options)

AddressMatchService.js, line 5
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online.

withCredentials boolean false optional

Request whether to carry a cookie.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new ol.supermap.AddressMatchService(url,options)
     .code(function(result){
         //doSomething
     })

Extends

Methods

code(params, callback)

AddressMatchService.js, line 29

Get the result of coding addressMatchService.

Name Type Description
params SuperMap.GeoCodingParameter

The parameters of coding addressMatchService.

callback RequestCallback

The callback of result data returned by the server side.

decode(params, callback)

AddressMatchService.js, line 50

Get the result of decoding addressMatchService.

Name Type Description
params SuperMap.GeoDecodingParameter

The parameters of decoding addressMatchService.

callback RequestCallback

The callback of result data returned by the server side.