GaodePOIGeocoder

GaodePOIGeocoder

高德POI查询 类

Constructor

new GaodePOIGeocoder(optionsopt)

类构造

Parameters:
Name Type Attributes Description
options Object <optional>

带有以下属性的对象:

Properties
Name Type Attributes Description
citycode String <optional>

城市唯一code

key String <optional>

高德key

Classes

GaodePOIGeocoder

Methods

geocode(query) → {Object}

根据关键字获取位置信息

Parameters:
Name Type Description
query String

查询条件 输入关键字

Returns:

显示名称,坐标信息

Type
Object

getOneKey() → {String}

随机获取key

Returns:

val 随机获取key

Type
String