1.使用腾讯地图获取地点的经纬度
官方坐标获取:https://lbs.qq.com/getPoint/
如:重庆解放碑
纬度:29.557284
经度:106.577153
2.使用微信小程序的内置地图。
微信小程序文档:https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html
goParkingLot(e){
const latitude = 29.557284
const longitude = 106.577153
//打开内部地图(默认腾讯地图)
wx.openLocation({
latitude,
longitude,
scale: 18
})
},