官方文档非常全:
https://lbs.qq.com/qqmap_wx_jssdk/method-reverseGeocoder.html
后台service地址
https://lbs.qq.com/webservice_v1/guide-gcoder.html
getAddressName: function () {
var that = this;
var locationString = this.data.latitude + "," + this.data.longitude;
var qqmapsdk = new QQMapWX({
key: 'MHUBZ-B6C6X-55***********', // 必填
});
console.log(locationString);
qqmapsdk.reverseGeocoder({
location: locationString || '', //获取表单传入的位置坐标,
sig:"1i5cUFC*****",//看情况是否有sig