更新时间:2023-12-18 GMT+08:00
分享

打卡位置选择

扫码体验:

请求参数

参数

类型

必填

说明

radius

number

地理地标的半径范围

longitude

string

地理地标的经度,范围-180~180

latitude

string

地理地标的纬度,范围-90~90

返回结果

参数

说明

name

地标名称

address

地标详细地址

longitude

地标经度

latitude

地标纬度

请求示例

  • ES6示例
HWH5.searchLocation({
  radius: 1000,
  longitude: '114.062492',
  latitude: '22.653965'
})
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.log(error);
  });
  • ES5示例
HWH5.searchLocation({
  radius: 1000,
  longitude: '114.062492',
  latitude: '22.653965'
})
  .then(function(data) {
    console.log(data);
  })
  .catch(function(error) {
    console.log(error);
  });

HWH5.openLocation

支持版本>=10.1.2

分享:

    相关文档

    相关产品