ESGeoDecode Class

弹性搜索服务.ESGeoDecode(option)

Fx构造函数

# new ESGeoDecode(option)

Zondy.DataStore.ElasticSearch.ESGeoDecode-根据给定的地理位置及半径检索地名,返回地名地址详细信息。

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

属性键值对

indexName 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开始

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

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

成员变量

String

# bbox

矩形范围信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 54

String

# city

市约束信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 47

Double

# dis

半径,默认单位是千米

Default Value:
  • 0.1

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 89

String

# filter

过滤条件

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 68

String

# geometry

多边形过滤条件

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 61

String

# indexName

库名称

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 33

Double

# lat

每页大小

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 82

Double

# lon

经度

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 75

Int

# pageNo

页码,从1开始

Default Value:
  • 1

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 103

Int

# pageSize

每页大小

Default Value:
  • 100

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 96

String

# province

省约束信息

Default Value:
  • null

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 40

String

# serviceUrl

es逆地址解析服务地址

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

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 26

方法

# query(onSuccess, onError)

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

参数:
名称 类型 描述
onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/datastore/elasticsearch/ESGeoDecode.js, line 132