第一步
小程序中需要通过getLocation方法获取地理位置
wx.getLocation({
type: 'wgs84',
success (res) {
const latitude = res.latitude
const longitude = res
小程序中需要通过getLocation方法获取地理位置
wx.getLocation({
type: 'wgs84',
success (res) {
const latitude = res.latitude
const longitude = res