# new ESGeoDecode(option)
Zondy.DataStore.ElasticSearch.ESGeoDecode-根据给定的地理位置及半径检索地名,返回地名地址详细信息。
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
option |
Object | 属性键值对 |
||
indexName |
String |
<optional> |
必选。数据库名 |
|
typeName |
String |
<optional> |
可选。地址库名 |
|
province |
String |
<optional> |
可选。省约束信息 |
|
city |
String |
<optional> |
可选。市约束信息 |
|
bbox |
String |
<optional> |
可选。矩形范围信息 |
|
geometry |
String |
<optional> |
可选。多边形过滤条件 |
|
filter |
String |
<optional> |
可选。过滤条件 |
|
lon |
Double |
<optional> |
必选。经度 |
|
lat |
Double |
<optional> |
必选。纬度 |
|
dis |
Double |
<optional> |
0.1 | 可选。半径,默认单位是千米 |
pageSize |
Int |
<optional> |
100 | 可选。每页大小 |
pageNo |
Int |
<optional> |
1 | 可选。页码,从1开始 |
成员变量
# bbox
矩形范围信息
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 62
# city
市约束信息
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 55
# dis
半径,默认单位是千米
- Default Value:
- 0.1
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 97
# filter
过滤条件
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 76
# geometry
多边形过滤条件
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 69
# indexName
数据库名称
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 34
# pageNo
页码,从1开始
- Default Value:
- 1
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 111
# pageSize
每页大小
- Default Value:
- 100
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 104
# province
省约束信息
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 48
# serviceUrl
es逆地址解析服务地址
- Default Value:
- /addressservice/es/location/geodecode/
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 27
# typeName
地址库名,Es中的type名称,DataStore中为地址库
- Default Value:
- null
查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 41
方法
# query(onSuccess, onError)
查询函数,向服务器发送请求,返回geosjon格式数据
参数:
名称 | 类型 | 描述 |
---|---|---|
onSuccess |
function | 查询成功回调函数。 |
onError |
function | 查询失败回调函数。 |