1. 下載微信小程序[qqmap-wx-jssdk.js](http://3gimg.qq.com/lightmap/xcx/jssdk/qqmap-wx-jssdk1.2.zip)
2. 引入文件
```
var QQMapWX = require('../../libs/qqmap-wx-jssdk.js');
```
3. 實例化API核心類,[key值管理](https://lbs.qq.com/console/mykey.html?console=mykey)
```
var qqmapsdk = new QQMapWX({
key: 'xxxxxx'//申請的key值
});
```
4.使用
```
qqmapsdk.reverseGeocoder({
//位置坐標,默認獲取當前位置,非必須參數
//Object格式
// location: {
// latitude: \_this.data.latitude,
// longitude: \_this.data.longitude
// },
//String格式
location: latitude,longitude,
success: function (res) {//成功后的回調
// console.log(res);
// console.log(res.result.address\_component.city)
_this.setData({
district:res.result.address\_component.district
})
},
fail: function (error) {
console.error(error);
}
})
```