Class: v1

.GeoCodingQuery. v1

地址匹配服务查询接口的抽象类,抽象类不能实例化。

new v1()

Source:
View2D/Query/GeoCodingQuery/v1.js
Example
(code)
     //根据范围和地址进行查询:
		var coding = new GeoGlobe.Query.GeoCodingQuery("http://192.168.42.76:7021/GeoCoding/geocoding");
		coding.getCategoryByCode(1012001008000000,
		function(GeoCoding){},function(){});
(end)

Members


url :String

服务地址。
Type:
  • String
Source:
View2D/Query/GeoCodingQuery/v1.js

version

服务版本,默认值是"1.0.0"。
Source:
View2D/Query/GeoCodingQuery/v1.js

Methods


failFn()

请求失败的回调函数,可以用自定义函数覆盖。
Source:
View2D/Query/GeoCodingQuery/v1.js

getAllCategory(successFn, failFn)

查询所有类别信息。
Parameters:
Name Type Description
successFn function 请求成功的回调函数。关于成功回调返回内容的结构,请参考:GetCategory.xsd。
failFn function 请求失败的回调函数。
Source:
View2D/Query/GeoCodingQuery/v1.js

getCategoryByCode(code, successFn, failFn)

根据类别编码查询类别及子类别。
Parameters:
Name Type Description
code Number 类别编码。
successFn function 请求成功的回调函数。关于成功回调返回内容的结构,请参考:GetCategory.xsd。
failFn function 请求失败的回调函数。
Source:
View2D/Query/GeoCodingQuery/v1.js

getCategoryByName(name, successFn, failFn)

根据类别名称查询类别及子类别。
Parameters:
Name Type Description
name String 类别名称。
successFn function 请求成功的回调函数。关于成功回调返回内容的结构,请参考:GetCategory.xsd。
failFn function 请求失败的回调函数。
Source:
View2D/Query/GeoCodingQuery/v1.js

initialize(url, options)

GeoGlobe.Query.GeoCodingQuery.v1类的构造函数。
Parameters:
Name Type Description
url String 服务地址。
options Object 相关属性的设置项,可选。 服务版本。
Source:
View2D/Query/GeoCodingQuery/v1.js