wxgetLocation type wgs84 successres consolelogres const latitude = reslatitude const longitude = reslongitude const speed = resspeed const accuracy =
这段代码是使用微信小程序的API wx.getLocation 获取用户的地理位置信息,并将获取到的经纬度信息传递给腾讯地图SDK的reverseGeocoder方法进行地址解析,获取用户当前位置的详细地址信息,并将该信息保存在页面数据中。最后调用nearby_search方法进行附近地点搜索。
原文地址: https://www.cveoy.top/t/topic/e2iy 著作权归作者所有。请勿转载和采集!