import request from '@/utils/request'
// 逆地址编码
export const getLocation = (params) => {
  return request({
    baseURL: import.meta.env.VITE_APP_TENCENT_MAP_API,
    url: '/',
    params: {
      location: params.lat + ',' + params.lng, // GCJ02坐标系(经度,维度)
      key: 'UTEBZ-UJ3KG-OORQO-QT3PT-JDWU7-YRBZA'
    }
  })
}