Constructor
new TDTCodingQuery(token, option)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
token |
String | 天地图的token | ||||||
option |
Object | 参数
Properties
|
Methods
query(options, successFn, failFn)
天地图地名地址查询 -返回处理后的 features对象
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 参数
Properties
|
|||||||||||||||||||||||||||||||||||
successFn |
function | 请求成功的回调函数。 | |||||||||||||||||||||||||||||||||||
failFn |
function | 请求失败的回调函数。 |