import request from '@/utils/request.js'
import {
	mapBaseUrl,
	mapKey,
} from '@/config.js'
// 所有服务均基于腾讯地图
/**
 * 逆地理位置编码
 */
export const reverseGeocoding = ({
	params
}) => {
	return request({
		// baseUrl: mapBaseUrl + `/reverse_geocoding/v3/?ak=${mapKey}&output=json&coordtype=${coordtype}&${urlParams}`
		baseUrl: mapBaseUrl + `/ws/geocoder/v1/?location=${params.location}&key=${mapKey}&poi_options=policy=5`
	})
}