new mapboxgl.supermap.AddressMatchService(url, options)
AddressMatchService.js, line 6
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new mapboxgl.supermap.AddressMatchService(url,options)
.code(function(result){
//doSomething
})
Extends
Events
-
inherited initialized
ServiceBase.js, line 23 -
Triggered after the constructor construct succeeds.
Properties:
Name Type Description thisObject This object.
Methods
-
code(params, callback)
AddressMatchService.js, line 29 -
Get the result of coding addressMatchService.
Name Type Description paramsObject Positive matching parameters.
callbackRequestCallback 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 paramsObject The parameters of decoding addressMatchService.
callbackRequestCallback The callback of result data returned by the server side.