调用高德地图的sdk
// #ifndef H5
this.qqmapsdk.reverseGeocoder({
get_poi: 1,
poi_options: `address_format=short;policy=1;radius=3000;page_size=20;page_index=1;category=${this.category}`,
location: {
latitude: this.lat,
longitude: this.lng
},
success: res => {
let data = res.result.pois || [];
this.getResult(data)
},
fail: res => {
this.loading = false;
this.tui.toast('获取位置信息失败,请检查是否打开位置权限!');
}
})
// #endif
文档:https://lbs.qq.com/service/webService/webServiceGuide/webServiceGcoder