ESGeoCode Class

弹性搜索服务.ESGeoCode(option)

Fx构造函数

# new ESGeoCode(option)

Zondy.DataStore.ElasticSearch.ESGeoCode-根据给定的关键字检索对应的地名地址,返回地名地址详细信息列表。

参数:
名称 类型 属性 默认值 描述
option Object

属性键值对

indexName String <optional>

必选。数据库名

province String <optional>

可选。省约束信息

city String <optional>

可选。市约束信息

keyWord String <optional>
""

可选。查询关键字

bbox String <optional>

可选。矩形范围信息

geometry String <optional>

可选。多边形过滤条件

filter String <optional>

可选。过滤条件

pageSize Int <optional>
100

可选。每页大小

pageNo Int <optional>
1

可选。页码,从1开始

作者:
  • 基础平台-王魁帅
See:

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 4

成员变量

String

# bbox

矩形范围信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 59

String

# city

市约束信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 45

String

# geometry

多边形过滤条件

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 66

String

# indexName

库名称

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 31

String

# keyWord

查询关键字

Default Value:
  • ''

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 52

Int

# pageNo

页码,从1开始

Default Value:
  • 1

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 87

Int

# pageSize

每页大小

Default Value:
  • 100

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 80

String

# province

省约束信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 38

String

# serviceUrl

es地理编码服务地址

Default Value:
  • /addressservice/es/location/geocode/

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 24

String

# 过滤条件

数据分类

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 73

方法

# query(onSuccess, onError)

查询函数,向服务器发送请求,返回geosjon格式数据

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/ESGeoCode.js, line 114