1.小程序调用地点识别
wx.openLocation(Object object)
使用微信内置地图查看位置 https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success (res) {
const latitude = res.latitude
const longitude = res.longitude
wx.openLocation({
latitude,
longitude,
scale: 18
})
}
})
https://blog.csdn.net/weixin_44763569/article/details/88668676