/// /** * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/location.html#wxgetlocationobject) * @param type [string] 默认为 wgs84 返回 GPS 坐标;gcj02 返回国测局坐标,可用于wx.openLocation的坐标 * @param altitude [boolean] 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度 */ export default function get_location(type: 'wgs84' | 'gcj02', altitude?: boolean): Promise;